INNER CODE UNIT · JavaScript
wait
cyrus-and/chrome-har-capturer · lib/har.js:238
const wait = timing.receiveHeadersEnd - timing.sendEnd;
const receive = toMilliseconds(finishedTimestamp - (timing.requestTime + timing.receiveHeadersEnd / 1000));
let ssl = -1;
if (timing.sslStart >= 0 && timing.sslEnd >= 0) {
ssl = timing.sslEnd - timing.sslStart;
}
return {
time,
timings: {blocked, dns, connect, send, wait, receive, ssl}
};
}
function computePayload(entry, headers) {
// From Chrome:
// - responseHeaders.size: size of the headers if available (otherwise
// -1, e.g., HTTP/2)
// - entry.responseLength: actual *decoded* body size
// - entry.encodedResponseLength: total on-the-wire data