InterceptRule
Defined in: intercept-http.ts:72
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
match? |
(url, method) => boolean |
Custom match function. If provided, path is ignored. |
intercept-http.ts:80 |
maxBodyChars? |
number |
Max chars for body truncation. Default: 5000. | intercept-http.ts:82 |
method? |
string |
HTTP method to match (case-insensitive). If omitted, matches all methods. | intercept-http.ts:78 |
name? |
string |
Human-readable name for this rule | intercept-http.ts:74 |
onIntercept? |
(event) => void |
Callback fired on each intercepted request matching this rule | intercept-http.ts:84 |
path? |
string |
URL substring to match (simple matching) | intercept-http.ts:76 |