For AI agents: a documentation index is available at /llms.txt
Skip to main content

response

Streams each network response as it is received. Mirrors page.on('response'). The response body is NOT fetched by default (streaming many bodies is expensive); request the body field in your selection set to trigger a per-event fetch.

response(
url: [String]
status: [Int]
method: [Method]
type: [ResourceType]
operator: OperatorTypes = or
): ResponseResponse

Arguments

response.url ● [String] list scalar

Glob-like URL pattern(s) to match against.

response.status ● [Int] list scalar

HTTP status code(s) to match against.

response.method ● [Method] list enum

HTTP method(s) to match against.

response.type ● [ResourceType] list enum

Resource type(s) to match against.

response.operator ● OperatorTypes enum

Whether to "and" or "or" the supplied filters together.

Type

ResponseResponse object

Response returned from the response API