Answer a held request yourself
browser_network_provide_responseFulfill an intercepted request with a custom HTTP status, content type, and body instead of sending it to the network, enabling API stubbing by request ID.
Instructions
Fulfil one intercepted request with your own response body (network.provideResponse), instead of letting it reach the network. Pass the request id reported by browser_network_requests. Use this to stub an API, then release the rest with browser_network_continue_all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body (default empty) | |
| requestId | Yes | Request id from browser_network_requests (network.beforeRequestSent) | |
| statusCode | Yes | HTTP status code, e.g. 200 | |
| contentType | No | Content-Type header (default text/plain) |