Class: Aikido::Zen::Scanners::SSRFScanner::Request Private
- Inherits:
-
Object
- Object
- Aikido::Zen::Scanners::SSRFScanner::Request
- 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
- #uri ⇒ Object readonly private
- #verb ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(verb:, uri:, **header_options) ⇒ Request
constructor
private
A new instance of Request.
- #to_s ⇒ Object private
Methods included from 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:, **) super(**) @verb = verb.to_s.upcase @uri = URI(uri) end |
Instance Attribute Details
#uri ⇒ Object (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 |
#verb ⇒ Object (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_s ⇒ Object
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 |