Class: Ronin::DB::HTTPRequestHeader

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Model
Defined in:
lib/ronin/db/http_request_header.rb

Overview

Represents a HTTP header sent in a HTTP request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Model

included

Instance Attribute Details

#idInteger

The primary ID of the HTTP request header.

Returns:

  • (Integer)


38
# File 'lib/ronin/db/http_request_header.rb', line 38

attribute :id, :integer

#nameHTTPHeaderName

The name of the HTTP request header.

Returns:



44
45
# File 'lib/ronin/db/http_request_header.rb', line 44

belongs_to :name, required:   true,
class_name: 'HTTPHeaderName'

#requestHTTPRequest

The HTTP request that the header belongs to.

Returns:



58
59
# File 'lib/ronin/db/http_request_header.rb', line 58

belongs_to :request, required:   true,
class_name: 'HTTPRequest'

#valueString

The value of the HTTP request header.

Returns:

  • (String)


51
# File 'lib/ronin/db/http_request_header.rb', line 51

attribute :value, :string

Instance Method Details

#to_sString

Converts the HTTP request header to a String.

Returns:

  • (String)

    The header's name and value.



69
70
71
# File 'lib/ronin/db/http_request_header.rb', line 69

def to_s
  "#{self.name}: #{self.value}"
end