Class: Ronin::DB::HTTPResponse
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::HTTPResponse
- Includes:
- Model
- Defined in:
- lib/ronin/db/http_response.rb
Overview
Represents a HTTP response.
Instance Attribute Summary collapse
-
#body ⇒ String?
The optional body of the HTTP response.
-
#created_at ⇒ Time
readonly
When the HTTP response was created.
-
#headers ⇒ Array<HTTPResponseHeader>
The associated headers of the HTTP response.
-
#id ⇒ Integer
The primary ID of the HTTP response.
-
#request ⇒ HTTPRequest
The associated HTTP request that the response was returned for.
-
#status ⇒ Integer
The HTTP status code of the response.
Method Summary
Methods included from Model
Instance Attribute Details
#body ⇒ String?
The optional body of the HTTP response.
71 |
# File 'lib/ronin/db/http_response.rb', line 71 attribute :body, :text |
#created_at ⇒ Time (readonly)
When the HTTP response was created.
77 |
# File 'lib/ronin/db/http_response.rb', line 77 attribute :created_at, :datetime |
#headers ⇒ Array<HTTPResponseHeader>
The associated headers of the HTTP response.
63 64 65 |
# File 'lib/ronin/db/http_response.rb', line 63 has_many :headers, foreign_key: :request_id, class_name: 'HTTPResponseHeader', dependent: :destroy |
#id ⇒ Integer
The primary ID of the HTTP response.
38 |
# File 'lib/ronin/db/http_response.rb', line 38 attribute :id, :integer |
#request ⇒ HTTPRequest
The associated HTTP request that the response was returned for.
83 84 85 |
# File 'lib/ronin/db/http_response.rb', line 83 has_one :request, required: true, foreign_key: :response_id, class_name: 'HTTPRequest' |
#status ⇒ Integer
The HTTP status code of the response.
44 |
# File 'lib/ronin/db/http_response.rb', line 44 attribute :status, :integer |