Class: Arachni::Parser::Element::Header

Inherits:
Base show all
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

#altered, #opts

Instance Method Summary collapse

Methods inherited from Base

#dup, #id

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

#simpleObject



302
303
304
# File 'lib/arachni/parser/elements.rb', line 302

def simple
    return @auditable.dup
end

#typeObject



306
307
308
# File 'lib/arachni/parser/elements.rb', line 306

def type
    Arachni::Module::Auditor::Element::HEADER
end