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.



195
196
197
198
199
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 195

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.



193
194
195
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 193

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.



192
193
194
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 192

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.



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

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