Class: Arachni::Parser::Element::Header
- Inherits:
-
Base
- Object
- Element::Auditable
- Base
- Arachni::Parser::Element::Header
- Defined in:
- lib/arachni/parser/elements.rb
Instance Attribute Summary
Attributes inherited from Base
#action, #auditable, #method, #orig, #raw, #url
Attributes inherited from Element::Auditable
Instance Method Summary collapse
- #http_request(url, opts) ⇒ Object
-
#initialize(url, raw = {}) ⇒ Header
constructor
A new instance of Header.
- #simple ⇒ Object
- #type ⇒ Object
Methods inherited from Base
Methods inherited from Element::Auditable
#audit, #audit_id, #auditor, #debug?, #get_auditor, #get_status_str, #info, #injection_sets, #override_instance_scope!, #override_instance_scope?, #print_debug, #print_error, #print_status, reset, restrict_to_elements!, #skip?, #submit
Methods included from Module::Utilities
#exception_jail, #get_path, #hash_keys_to_str, #normalize_url, #read_file, #seed, #uri_decode, #uri_encode, #uri_parse, #uri_parser, #url_sanitize
Constructor Details
#initialize(url, raw = {}) ⇒ Header
Returns a new instance of Header.
287 288 289 290 291 292 293 294 295 296 |
# File 'lib/arachni/parser/elements.rb', line 287 def initialize( url, raw = {} ) super( url, raw ) @action = @url @method = 'header' @auditable = @raw @orig = @auditable.deep_clone @orig.freeze end |
Instance Method Details
#http_request(url, opts) ⇒ Object
298 299 300 |
# File 'lib/arachni/parser/elements.rb', line 298 def http_request( url, opts ) return @auditor.http.header( url, opts ) end |
#simple ⇒ Object
302 303 304 |
# File 'lib/arachni/parser/elements.rb', line 302 def simple return @auditable.dup end |