Request
A network request recorded during the Analysis.
interface Request {
requestId: string;
loaderId: string;
frameId: string;
targetVersion: string;
url: string;
redirectUrl: string;
method: HttpMethods; // "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH" | "UNKNOWN"
mixedContentType: MixedContentType; // "none" | "blockable" | "optionally-blockable"
initialPriority: InitialPriority; // "VERY_LOW" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH" | "UNKNOWN"
isLinkPreload: boolean;
referer: string;
referrerPolicy: ReferrerPolicy; // "" | "no-referrer" | "no-referrer-when-downgrade" | "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | "strict-origin-when-cross-origin" | "unsafe-url"
status: string;
statusText: string;
mimeType: string;
remoteIPAddress: string;
remotePort: string;
fromDiskCache: boolean;
fromServiceWorker: boolean;
encodedDataLength: string;
protocol: string;
resourceType: ResourceType; // "DOCUMENT" | "STYLESHEET" | "IMAGE" | "MEDIA" | "FONT" | "SCRIPT" | "TEXT_TRACK" | "XHR" | "FETCH" | "EVENT_SOURCE" | "WEBSOCKET" | "MANIFEST" | "SIGNED_EXCHANGE" | "PING" | "CSP_VIOLATION_REPORT" | "OTHER" | "UNKNOWN"
initiatorType: InitiatorType; // "PARSER" | "SCRIPT" | "PRELOAD" | "SIGNED_EXCHANGE" | "OTHER" | "UNKNOWN"
initiatorUrl: string;
securityState: SecurityState; // "UNKNOWN" | "NEUTRAL" | "INSECURE" | "SECURE" | "INFO"
wallTime: string;
startTime: MonotonicTime;
endTime: MonotonicTime;
error: boolean;
errorType: string;
errorMessage: string;
timing: RequestTiming;
}
Fields
requestIdloaderIdframeIdtargetVersionurlredirectUrlmethodmixedContentTypeinitialPriorityisLinkPreloadrefererreferrerPolicystatusstatusTextmimeTyperemoteIPAddressremotePortfromDiskCachefromServiceWorkerencodedDataLengthprotocolresourceTypeinitiatorTypeinitiatorUrlsecurityStatewallTimestartTimeendTimeerrorerrorTypeerrorMessagetiming
Reference
Fields
requestId
version : 1.0.0
stability: stable
requestId: string;
The unique identifier of the network Request.
⚠️ Caution: In some cases such as redirection, this identifier could be shared by more than one entry as referencing themselves to the same request:
[ { "requestId": "10.1", "status": "302" }, { "requestId": "10.1", "status": "200" } ]
loaderId
version : 1.0.0
stability: stable
loaderId: string;
Loader's identifier that loaded the Request.
frameId
version : 1.0.0
stability: stable
frameId: string;
Frame's identifier that loaded the Request.
targetVersion
version : 1.0.0
stability: stable
targetVersion: string;
Target's version when the Request was loaded.
url
version : 1.0.0
stability: stable
url: string;
The Request's URL.
redirectUrl
version : 1.0.0
stability: stable
redirectUrl: string;
If the request is a redirect, this field will contain the URL that it has redirected to.
method
version : 1.0.0
stability: stable
method: HttpMethods;
enum HttpMethods {
Get = "GET",
Head = "HEAD",
Post = "POST",
Put = "PUT",
Delete = "DELETE",
Connect = "CONNECT",
Options = "OPTIONS",
Trace = "TRACE",
Patch = "PATCH",
Unknown = "UNKNOWN",
}
The HTTP request method.
mixedContentType
version : 1.0.0
stability: stable
mixedContentType: MixedContentType;
enum MixedContentType {
None = "none",
Blockable = "blockable",
OptionallyBlockable = "optionally-blockable",
}
A description of mixed content (HTTP resources on HTTPS pages), as defined by the W3C Content Categories.
initialPriority
version : 1.0.0
stability: stable
initialPriority: InitialPriority;
enum InitialPriority {
VeryLow = "VERY_LOW",
Low = "LOW",
Medium = "MEDIUM",
High = "HIGH",
VeryHigh = "VERY_HIGH",
Unknown = "UNKNOWN",
}
The resource's request priority at the time where the request was sent.
isLinkPreload
version : 1.0.0
stability: stable
isLinkPreload: boolean;
Whether the request is loaded via link preload or not.
referer
version : 1.0.0
stability: stable
referer: string;
Referer's that loaded the Request.
referrerPolicy
version : 1.0.0
stability: stable
referrerPolicy: ReferrerPolicy;
enum ReferrerPolicy {
None = "",
UnsafeUrl = "unsafe-url",
NoReferrerWhenDowngrade = "no-referrer-when-downgrade",
NoReferrer = "no-referrer",
Origin = "origin",
OriginWhenCrossOrigin = "origin-when-cross-origin",
SameOrigin = "same-origin",
StrictOrigin = "strict-origin",
StrictOriginWhenCrossOrigin = "strict-origin-when-cross-origin",
}
The referrer policy of the request, as defined in the W3C Recommendation.
status
version : 1.0.0
stability: stable
status: string;
HTTP response status code.
statusText
version : 1.0.0
stability: stable
statusText: string;
HTTP response status text.
mimeType
version : 1.0.0
stability: stable
mimeType: string;
Resource's mimeType as determined by the browser.
remoteIPAddress
version : 1.0.0
stability: stable
remoteIPAddress: string;
Remote IP address.
remotePort
version : 1.0.0
stability: stable
remotePort: string;
Remote port.
fromDiskCache
version : 1.0.0
stability: stable
fromDiskCache: boolean;
Whether the request was served from the disk cache or not.
fromServiceWorker
version : 1.0.0
stability: stable
fromServiceWorker: boolean;
Whether the request was served from the ServiceWorker or not.
encodedDataLength
version : 1.0.0
stability: stable
encodedDataLength: string;
Total number of bytes received for this request.
protocol
version : 1.0.0
stability: stable
protocol: string;
Protocol used to fetch this request.
resourceType
version : 1.0.0
stability: stable
resourceType: ResourceType;
enum ResourceType {
Document = "DOCUMENT",
Stylesheet = "STYLESHEET",
Image = "IMAGE",
Media = "MEDIA",
Font = "FONT",
Script = "SCRIPT",
TextTrack = "TEXT_TRACK",
XHR = "XHR",
Fetch = "FETCH",
EventSource = "EVENTSOURCE",
Websocket = "WEBSOCKET",
Manifest = "MANIFEST",
SignedExchange = "SIGNED_EXCHANGE",
Ping = "PING",
CSPViolationReport = "CSP_VIOLATION_REPORT",
Other = "OTHER",
Unknown = "UNKNOWN",
}
Resource type as it was perceived by the rendering engine.
initiatorType
version : 1.0.0
stability: stable
initiatorType: InitiatorType;
enum InitiatorType {
Parser = "PARSER",
Script = "SCRIPT",
Preload = "PRELOAD",
SignedExchange = "SIGNED_EXCHANGE",
Other = "OTHER",
Unknown = "UNKNOWN",
}
Type of the request's initiator.
initiatorUrl
version : 1.0.0
stability: stable
initiatorUrl: string;
Initiator URL, set for Parser type or for Script type (when script is importing module).
securityState
version : 1.0.0
stability: stable
securityState: SecurityState;
enum SecurityState {
Unknown = "UNKNOWN",
Neutral = "NEUTRAL",
Insecure = "INSECURE",
Secure = "SECURE",
Info = "INFO",
}
The security level of a page or resource.
wallTime
version : 1.0.0
stability: stable
wallTime: string;
Timestamp since epoch.
startTime
version : 1.0.0
stability: stable
startTime: MonotonicTime;
An MonotonicTime that reflects the relative time since the initial request was send.
endTime
version : 1.0.0
stability: stable
endTime: MonotonicTime;
An MonotonicTime that reflects the relative time since the response was fully loaded.
error
version : 1.0.0
stability: stable
error: boolean;
Whether the Request returned an error.
errorType
version : 1.0.0
stability: stable
errorType: string;
Type of the error that occurred.
errorMessage
version : 1.0.0
stability: stable
errorMessage: string;
Message of the error that occurred.
timing
version : 1.0.0
stability: stable
timing: RequestTiming;
interface RequestTiming {
requestTime: MonotonicTime;
proxyStart: string;
proxyEnd: string;
dnsStart: string;
dnsEnd: string;
connectStart: string;
connectEnd: string;
sslStart: string;
sslEnd: string;
workerStart: string;
workerReady: string;
sendStart: string;
sendEnd: string;
pushStart: string;
pushEnd: string;
receiveHeadersEnd: string;
}
Timing information for the request.
The timing's
requestTimeis a baseline in seconds (seeMonotonicTime), while the other numbers are ticks in milliseconds relatively to thisrequestTime.