Class: Ronin::DB::HTTPResponseHeader

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

Overview

Represents a HTTP header belonging to an HTTP response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Model

included

Instance Attribute Details

#idInteger

The primary ID of the HTTP response header.

Returns:

  • (Integer)


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

attribute :id, :integer

#nameHTTPHeaderName

The name of the HTTP response header.

Returns:



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

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

#responseHTTPResponse

The associated HTTP response that the HTTP response header belongs to.

Returns:



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

belongs_to :response, required:   true,
class_name: 'HTTPResponse'

#valueString

The value of the HTTP response header.

Returns:

  • (String)


51
# File 'lib/ronin/db/http_response_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_response_header.rb', line 69

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