Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/core/main/ar-migrations/015_create_http.rb
1154 views
1
class CreateHttp < ActiveRecord::Migration[6.0]
2
def change
3
create_table :https do |t|
4
t.text :hooked_browser_id
5
# The http request to perform. In clear text.
6
t.text :request
7
# Boolean value as string to say whether cross-origin requests are allowed
8
t.boolean :allow_cross_origin, default: true
9
# The http response body received. In clear text.
10
t.text :response_data
11
# The http response code. Useful to handle cases like 404, 500, 302, ...
12
t.integer :response_status_code
13
# The http response code. Human-readable code: success, error, ecc..
14
t.text :response_status_text
15
# The port status. closed, open or not http
16
t.text :response_port_status
17
# The XHR Http response raw headers
18
t.text :response_headers
19
# The http response method. GET or POST.
20
t.text :method
21
# The content length for the request.
22
t.text :content_length, default: 0
23
# The request protocol/scheme (http/https)
24
t.text :proto
25
# The domain on which perform the request.
26
t.text :domain
27
# The port on which perform the request.
28
t.text :port
29
# Boolean value to say if the request was cross-origin
30
t.text :has_ran, default: 'waiting'
31
# The path of the request.
32
# Example: /secret.html
33
t.text :path
34
# The date at which the http response has been saved.
35
t.datetime :response_date
36
# The date at which the http request has been saved.
37
t.datetime :request_date
38
end
39
end
40
end
41
42