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

request

Streams each network request as it is issued. Mirrors page.on('request'). The optional filters mirror the request() mutation.

request(
url: [String]
method: [Method]
type: [ResourceType]
operator: OperatorTypes = or
): RequestResponse

Arguments

request.url ● [String] list scalar

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

request.method ● [Method] list enum

HTTP method(s) to match against.

request.type ● [ResourceType] list enum

Resource type(s) to match against.

request.operator ● OperatorTypes enum

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

Type

RequestResponse object

Response returned from the request API