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.



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

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.



204
205
206
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 204

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.



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

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.



212
213
214
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 212

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