Detailed information about a network request made by the page.

Definition

object Request {
  failure: RequestFailure
  headers: Headers
  isNavigationRequest: Boolean
  method: String
  postData: JSON
  resourceType: String
  response: Response
  sizes: RequestSizes
  timing: RequestTiming
  url: URL
}

Fields

failure: RequestFailure

Details about the request failure, if any.

headers: Headers

HTTP headers associated with the request.

isNavigationRequest: Boolean

Whether this request is for a navigation (e.g., loading a new document).

method: String

The HTTP method of the request (e.g., ‘GET’, ‘POST’).

postData: JSON

The POST data payload, if any, as a JSON object or string.

resourceType: String

The type of resource requested (e.g., ‘document’, ‘script’, ‘image’). See ResourceType enum.

response: Response

The response associated with this request, if available.

sizes: RequestSizes

Information about the sizes of the request and response components.

timing: RequestTiming

Timing information for various stages of the request lifecycle.

url: URL

The URL of the request.