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

Inherits:
Base show all
Defined in:
lib/parser/elements.rb

Instance Attribute Summary

Attributes inherited from Base

#action, #auditable, #method, #raw, #url

Attributes inherited from Element::Auditable

#altered, #opts

Instance Method Summary collapse

Methods inherited from Base

#id

Methods inherited from Element::Auditable

#audit, #auditor, #debug?, #get_status_str, #info, #injection_sets, #print_debug, #print_error, #print_status, reset, #skip?, #submit

Methods included from Module::Utilities

#exception_jail, #get_path, #normalize_url, #read_file, #seed

Constructor Details

#initialize(url, raw = {}) ⇒ Header

Returns a new instance of Header.



270
271
272
273
274
275
276
277
# File 'lib/parser/elements.rb', line 270

def initialize( url, raw = {} )
    super( url, raw )

    @action = @url
    @method = 'header'

    @auditable = @raw
end

Instance Method Details

#http_request(url, opts) ⇒ Object



279
280
281
# File 'lib/parser/elements.rb', line 279

def http_request( url, opts )
    return @auditor.http.header( url, opts )
end

#simpleObject



283
284
285
# File 'lib/parser/elements.rb', line 283

def simple
    return @auditable.dup
end

#typeObject



287
288
289
# File 'lib/parser/elements.rb', line 287

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