HAR::Request
Inherits JSON::Serializable < Reference < Object
This object contains detailed info about performed request.
The total request size sent can be computed as follows (if both values are available):
total_size = entry.request.headers_size + entry.request.body_size
Constants
FORMDATA_MIME_VALUES = {"application/x-www-form-urlencoded", "multipart/form-data"}
Log = ::Log.for(self)
Constructors
new(method : String, url : String, http_version : String, cookies : Array(HAR::Cookie) = Array(Cookie).new, headers : Array(HAR::Header) = Array(Header).new, query_string : Array(HAR::QueryString) = Array(QueryString).new, post_data : Nil | HAR::PostData = nil, headers_size : Int32 | Nil = nil, body_size : Int32 | Nil = nil, comment : Nil | String = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(http_request : HTTP::Request)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
body
Sourcebody_size
Size of the request body (POST data payload) in bytes.
NOTE: Set to -1 if the info is not available.
Size of the request body (POST data payload) in bytes.
NOTE: Set to -1 if the info is not available.
headers_size
Total number of bytes from the start of the HTTP request message until
(and including) the double CRLF before the body.
NOTE: Set to -1 if the info is not available.
Total number of bytes from the start of the HTTP request message until
(and including) the double CRLF before the body.
NOTE: Set to -1 if the info is not available.
http_cookies
Sourcehttp_cookies=(http_cookies : HTTP::Cookies)
Sourcehttp_headers
Sourcehttp_headers=(http_headers : HTTP::Headers)
Sourcequery_string_http_params
Sourceto_http_request
Sourceuri
Source