InterceptEvent
Defined in: intercept-http.ts:41
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
elapsedMs |
number |
Round-trip time in ms | intercept-http.ts:55 |
method |
string |
HTTP method | intercept-http.ts:49 |
ok |
boolean |
Whether status is 2xx | intercept-http.ts:53 |
request |
object |
Request details | intercept-http.ts:61 |
request.body |
string | null |
- | intercept-http.ts:63 |
request.headers |
HeadersInit | null |
- | intercept-http.ts:62 |
response |
object |
Response details | intercept-http.ts:66 |
response.body |
BodyResult |
- | intercept-http.ts:68 |
response.headers |
Record<string, string> |
- | intercept-http.ts:67 |
ruleId |
number |
Rule ID that matched | intercept-http.ts:57 |
ruleName? |
string |
Rule name (if provided) | intercept-http.ts:59 |
status |
number |
Response status code | intercept-http.ts:51 |
transport |
"fetch" | "xhr" |
Which transport was intercepted | intercept-http.ts:43 |
ts |
string |
ISO timestamp | intercept-http.ts:45 |
url |
string |
Request URL | intercept-http.ts:47 |