Class: Ronin::DB::HTTPResponse

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

Overview

Represents a HTTP response.

Instance Attribute Summary collapse

Method Summary

Methods included from Model

included

Instance Attribute Details

#bodyString?

The optional body of the HTTP response.

Returns:

  • (String, nil)


71
# File 'lib/ronin/db/http_response.rb', line 71

attribute :body, :text

#created_atTime (readonly)

When the HTTP response was created.

Returns:

  • (Time)


77
# File 'lib/ronin/db/http_response.rb', line 77

attribute :created_at, :datetime

#headersArray<HTTPResponseHeader>

The associated headers of the HTTP response.

Returns:



63
64
65
# File 'lib/ronin/db/http_response.rb', line 63

has_many :headers, foreign_key: :request_id,
class_name:  'HTTPResponseHeader',
dependent:   :destroy

#idInteger

The primary ID of the HTTP response.

Returns:

  • (Integer)


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

attribute :id, :integer

#requestHTTPRequest

The associated HTTP request that the response was returned for.

Returns:



83
84
85
# File 'lib/ronin/db/http_response.rb', line 83

has_one :request, required:   true,
foreign_key: :response_id,
class_name: 'HTTPRequest'

#statusInteger

The HTTP status code of the response.

Returns:

  • (Integer)


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

attribute :status, :integer