Update packages/playwright-core/src/server/fetch.ts
Co-authored-by: Dmitry Gozman <dgozman@gmail.com> Signed-off-by: Simon Knott <info@simonknott.de>
This commit is contained in:
parent
2d0919c0f6
commit
c29a5562e0
|
|
@ -324,7 +324,7 @@ export abstract class APIRequestContext extends SdkObject {
|
||||||
const timings: har.Timings = {
|
const timings: har.Timings = {
|
||||||
send: requestFinishAt! - startAt,
|
send: requestFinishAt! - startAt,
|
||||||
wait: responseAt - requestFinishAt!,
|
wait: responseAt - requestFinishAt!,
|
||||||
receive: endAt! - responseAt,
|
receive: endAt - responseAt,
|
||||||
dns: dnsLookupAt ? dnsLookupAt - startAt : -1,
|
dns: dnsLookupAt ? dnsLookupAt - startAt : -1,
|
||||||
connect: (tlsHandshakeAt ?? tcpConnectionAt!) - startAt, // "If [ssl] is defined then the time is also included in the connect field "
|
connect: (tlsHandshakeAt ?? tcpConnectionAt!) - startAt, // "If [ssl] is defined then the time is also included in the connect field "
|
||||||
ssl: tlsHandshakeAt ? tlsHandshakeAt - tcpConnectionAt! : -1,
|
ssl: tlsHandshakeAt ? tlsHandshakeAt - tcpConnectionAt! : -1,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue