Lupa API Reference / network/types / CapturedRequest
Interface: CapturedRequest
Defined in: src/network/types.ts:10
Represents a network request captured by the browser interceptor. This structure is passed to dynamic response closures and used for assertions.
Properties
body?
optionalbody?:string|null
Defined in: src/network/types.ts:22
The request body.
headers
headers:
Record<string,string>
Defined in: src/network/types.ts:16
A dictionary of all HTTP headers sent with the request.
method
method:
string
Defined in: src/network/types.ts:14
The HTTP method used for the request (e.g., GET, POST).
params?
optionalparams?:Record<string,string>
Defined in: src/network/types.ts:20
A dictionary of the path parameters (if matched via URLPattern).
query
query:
Record<string,string|string[]>
Defined in: src/network/types.ts:18
A dictionary of the parsed query string parameters.
url
url:
string
Defined in: src/network/types.ts:12
The full URL of the captured request.