Class: Ronin::DB::HTTPRequest
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::HTTPRequest
- Includes:
- Model
- Defined in:
- lib/ronin/db/http_request.rb
Overview
Represents a HTTP request.
Instance Attribute Summary collapse
-
#body ⇒ String?
The optional body of the HTTP request.
-
#created_at ⇒ Time
When the HTTP request was created.
-
#headers ⇒ Array<HTTPRequestHeader>
The additional headers of HTTP request.
-
#id ⇒ Integer
The primary ID for the HTTP request.
-
#path ⇒ String
The path of the HTTP request.
-
#query ⇒ String?
The query string of the HTTP request.
-
#query_params ⇒ Array<HTTPQueryParam>
The additional parsed query params of the HTTP request.
-
#request_method ⇒ "copy", ...
The request method.
-
#response ⇒ HTTPResponse?
The optional HTTP response associated with the HTTP request.
-
#source_ip ⇒ String?
The source IP Address.
-
#version ⇒ String
The HTTP version of the HTTP request.
Method Summary
Methods included from Model
Instance Attribute Details
#body ⇒ String?
The optional body of the HTTP request.
96 |
# File 'lib/ronin/db/http_request.rb', line 96 attribute :body, :text |
#created_at ⇒ Time
When the HTTP request was created.
117 |
# File 'lib/ronin/db/http_request.rb', line 117 attribute :created_at, :datetime |
#headers ⇒ Array<HTTPRequestHeader>
The additional headers of HTTP request.
102 103 104 |
# File 'lib/ronin/db/http_request.rb', line 102 has_many :headers, foreign_key: 'request_id', class_name: 'HTTPRequestHeader', dependent: :destroy |
#id ⇒ Integer
The primary ID for the HTTP request.
39 |
# File 'lib/ronin/db/http_request.rb', line 39 attribute :id, :integer |
#path ⇒ String
The path of the HTTP request.
76 |
# File 'lib/ronin/db/http_request.rb', line 76 attribute :path, :string |
#query ⇒ String?
The query string of the HTTP request.
83 |
# File 'lib/ronin/db/http_request.rb', line 83 attribute :query, :string |
#query_params ⇒ Array<HTTPQueryParam>
The additional parsed query params of the HTTP request.
89 90 91 |
# File 'lib/ronin/db/http_request.rb', line 89 has_many :query_params, foreign_key: 'request_id', class_name: 'HTTPQueryParam', dependent: :destroy |
#request_method ⇒ "copy", ...
The request method.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/ronin/db/http_request.rb', line 53 enum request_method: { copy: 'COPY', delete: 'DELETE', get: 'GET', head: 'HEAD', lock: 'LOCK', mkcol: 'MKCOL', move: 'MOVE', options: 'OPTIONS', patch: 'PATCH', post: 'POST', propfind: 'PROPFIND', proppatch: 'PROPPATCH', put: 'PUT', trace: 'TRACE', unlock: 'UNLOCK' }, _suffix: :request |
#response ⇒ HTTPResponse?
The optional HTTP response associated with the HTTP request.
110 111 |
# File 'lib/ronin/db/http_request.rb', line 110 belongs_to :response, class_name: 'HTTPResponse', dependent: :destroy |
#source_ip ⇒ String?
The source IP Address.
123 |
# File 'lib/ronin/db/http_request.rb', line 123 attribute :source_ip, :string |
#version ⇒ String
The HTTP version of the HTTP request.
45 |
# File 'lib/ronin/db/http_request.rb', line 45 attribute :version, :string |