Mitm Set Map Local
mitm_set_map_localRewrite matching URL requests to serve a mocked response from an allowlisted local file or directory. Use a regex pattern to route traffic to local content.
Instructions
Serve a mocked response for requests matching a URL regex from a local file or directory. The path MUST be inside allowed_mock_roots (R3).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| rule_id | No | ||
| rendered_spec | No | ||
| canonical_path | No | Canonical, allowlist-validated path that was registered. |