class HAR::Timings
- HAR::Timings
- Reference
- Object
Overview
This object describes various phases within request-response round trip. All times are specified in milliseconds.
The send, wait and receive timings are not optional and must have non-negative values.
An exporting tool can omit the blocked, dns, connect and ssl, timings
on every request if it is unable to provide them. Tools that can provide
these timings can set their values to -1
if they don’t apply.
For example, connect would be -1
for requests which re-use an existing
connection.
The time value for the request must be equal to the sum of the timings
supplied in this section (excluding any -1
values).
Following must be true in case there are no -1
values
(entry is an object in log.entries
):
entry.time == entry.timings.blocked + entry.timings.dns +
entry.timings.connect + entry.timings.send + entry.timings.wait +
entry.timings.receive
Included Modules
- JSON::Serializable
Defined in:
har/timings.crConstructors
- .new(pull : JSON::PullParser)
- .new(blocked : Float64 | Nil = nil, dns : Float64 | Nil = nil, connect : Float64 | Nil = nil, send : Float64 | Nil = nil, wait : Float64 | Nil = nil, receive : Float64 | Nil = nil, ssl : Float64 | Nil = nil, comment : Nil | String = nil)
Instance Method Summary
-
#blocked : Float64 | Nil
Time spent in a queue waiting for a network connection.
-
#blocked=(blocked : Float64 | Nil)
Time spent in a queue waiting for a network connection.
-
#comment : String | Nil
A comment provided by the user or the application.
-
#comment=(comment : String | Nil)
A comment provided by the user or the application.
-
#connect : Float64 | Nil
Time required to create TCP connection.
-
#connect=(connect : Float64 | Nil)
Time required to create TCP connection.
-
#dns : Float64 | Nil
DNS resolution time.
-
#dns=(dns : Float64 | Nil)
DNS resolution time.
-
#receive : Float64 | Nil
Time required to read entire response from the server (or cache).
-
#receive=(receive : Float64 | Nil)
Time required to read entire response from the server (or cache).
-
#send : Float64 | Nil
Time required to send HTTP request to the server.
-
#send=(send : Float64 | Nil)
Time required to send HTTP request to the server.
-
#ssl : Float64 | Nil
Time required for SSL/TLS negotiation.
-
#ssl=(ssl : Float64 | Nil)
Time required for SSL/TLS negotiation.
-
#wait : Float64 | Nil
Waiting for a response from the server.
-
#wait=(wait : Float64 | Nil)
Waiting for a response from the server.
Constructor Detail
Instance Method Detail
Time spent in a queue waiting for a network connection.
NOTE Use -1
if the timing does not apply to the current request.
Time spent in a queue waiting for a network connection.
NOTE Use -1
if the timing does not apply to the current request.
Time required to create TCP connection.
NOTE Use -1
if the timing does not apply to the current request.
Time required to create TCP connection.
NOTE Use -1
if the timing does not apply to the current request.
DNS resolution time. The time required to resolve a host name.
NOTE Use -1
if the timing does not apply to the current request.
DNS resolution time. The time required to resolve a host name.
NOTE Use -1
if the timing does not apply to the current request.
Time required to read entire response from the server (or cache).
Time required for SSL/TLS negotiation. If this field is defined then the time is also included in the connect field (to ensure backward compatibility with HAR 1.1).
NOTE Use -1
if the timing does not apply to the current request.
Time required for SSL/TLS negotiation. If this field is defined then the time is also included in the connect field (to ensure backward compatibility with HAR 1.1).
NOTE Use -1
if the timing does not apply to the current request.