class HAR::Entry

Included Modules

Defined in:

har/entry.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(request : HAR::Request, response : HAR::Response, pageref : Nil | String = nil, started_date_time : String | Time = Time.utc, time : Float64 | Nil = nil, cache : Nil | HAR::Cache = nil, timings : Nil | HAR::Timings = nil, server_ip_address : Nil | String = nil, connection : Nil | String = nil, comment : Nil | String = nil, websocket_messages : Nil | Array(HAR::WebSocketMessage) = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def cache : Cache | Nil #

Info about cache usage.


[View source]
def cache=(cache : Cache | Nil) #

Info about cache usage.


[View source]
def comment : String | Nil #

A comment provided by the user or the application.


[View source]
def comment=(comment : String | Nil) #

A comment provided by the user or the application.


[View source]
def connection : String | Nil #

Unique ID of the parent TCP/IP connection, can be the client or server port number. Note that a port number doesn't have to be unique identifier in cases where the port is shared for more connections. If the port isn't available for the application, any other unique connection ID can be used instead (e.g. connection index).


[View source]
def connection=(connection : String | Nil) #

Unique ID of the parent TCP/IP connection, can be the client or server port number. Note that a port number doesn't have to be unique identifier in cases where the port is shared for more connections. If the port isn't available for the application, any other unique connection ID can be used instead (e.g. connection index).


[View source]
def pageref : String | Nil #

Reference to the parent page. Leave out this field if the application does not support grouping by pages.


[View source]
def pageref=(pageref : String | Nil) #

Reference to the parent page. Leave out this field if the application does not support grouping by pages.


[View source]
def request : Request #

Detailed info about the request.


[View source]
def request=(request : Request) #

Detailed info about the request.


[View source]
def response : Response #

Detailed info about the response.


[View source]
def response=(response : Response) #

Detailed info about the response.


[View source]
def server_ip_address : String | Nil #

[View source]
def server_ip_address=(server_ip_address : String | Nil) #

[View source]
def started_date_time : Time | String #

[View source]
def started_date_time=(started_date_time : Time | String) #

[View source]
def time : Float64 | Nil #

Total elapsed time of the request in milliseconds. This is the sum of all timings available in the timings object (i.e. not including -1 values) .


[View source]
def time=(time : Float64 | Nil) #

Total elapsed time of the request in milliseconds. This is the sum of all timings available in the timings object (i.e. not including -1 values) .


[View source]
def timings : Timings | Nil #

Detailed timing info about request/response round trip.


[View source]
def timings=(timings : Timings | Nil) #

Detailed timing info about request/response round trip.


[View source]
def websocket_messages : Array(WebSocketMessage) | Nil #

[View source]
def websocket_messages=(websocket_messages : Array(WebSocketMessage) | Nil) #

[View source]