Skip to content

Lupa API Reference / network/types / CapturedRequest

Interface: CapturedRequest ​

Defined in: src/network/types.ts:12

Represents a network request captured by the browser interceptor. This structure is passed to dynamic response closures and used for assertions.

Properties ​

body? ​

optional body?: string | null

Defined in: src/network/types.ts:24

The request body.


headers ​

headers: Record<string, string>

Defined in: src/network/types.ts:18

A dictionary of all HTTP headers sent with the request.


method ​

method: string

Defined in: src/network/types.ts:16

The HTTP method used for the request (e.g., GET, POST).


params? ​

optional params?: Record<string, string>

Defined in: src/network/types.ts:22

A dictionary of the path parameters (if matched via URLPattern).


query ​

query: Record<string, string | string[]>

Defined in: src/network/types.ts:20

A dictionary of the parsed query string parameters.


url ​

url: string

Defined in: src/network/types.ts:14

The full URL of the captured request.