Class: Aikido::Zen::Scanners::SSRFScanner::Request Private

Inherits:
Object
  • Object
show all
Includes:
Headers
Defined in:
lib/aikido/zen/scanners/ssrf_scanner.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Headers

#headers

Constructor Details

#initialize(verb:, uri:, **header_options) ⇒ Request

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Request.



201
202
203
204
205
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 201

def initialize(verb:, uri:, **header_options)
  super(**header_options)
  @verb = verb.to_s.upcase
  @uri = URI(uri)
end

Instance Attribute Details

#uriObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



199
200
201
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 199

def uri
  @uri
end

#verbObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



198
199
200
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 198

def verb
  @verb
end

Instance Method Details

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



207
208
209
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 207

def to_s
  [@verb, @uri.to_s].join(" ").strip
end