struct

Sellia::CLI::StoredRequest

Inherits JSON::Serializable / Struct / Value / Object

Represents a complete request/response pair for the inspector

Constructors

new(id : String, method : String, path : String, status_code : Int32, duration : Int64, timestamp : Time, request_headers : Hash(String, Array(String)), request_body : String | Nil, response_headers : Hash(String, Array(String)), response_body : String | Nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

duration
Source
duration=(duration : Int64)
Source
id=(id : String)
Source
method
Source
method=(method : String)
Source
path
Source
path=(path : String)
Source
request_body
Source
request_body=(request_body : String | Nil)
Source
request_headers
Source
request_headers=(request_headers : Hash(String, Array(String)))
Source
response_body
Source
response_body=(response_body : String | Nil)
Source
response_headers
Source
response_headers=(response_headers : Hash(String, Array(String)))
Source
status_code
Source
status_code=(status_code : Int32)
Source
timestamp
Source
timestamp=(timestamp : Time)
Source