Mock network requests
browser_routeStub responses for URLs matching a pattern and restart mocking by re-adding the route.
Instructions
Stub responses for URLs matching a pattern. Restart mocking by re-adding the route.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body | |
| status | No | HTTP status to return (default 200) | |
| headers | No | Extra headers as "Name: Value" | |
| pattern | Yes | URL pattern with * wildcards, e.g. **/api/users | |
| contentType | No | Content-Type header |