Parsed request body (JSON, text, or undefined).
Note: This may be undefined initially while async parsing completes. Use
bodyPromise to await the parsed body.
Promise that resolves to the parsed request body.
Await this to ensure body parsing is complete before checking body content.
Request headers as a key-value record.
HTTP method (GET, POST, etc.).
URL pathname (without query string).
The original Request object from the fetch event.
MSW's unique identifier for this request.
OptionalresponseThe mocked Response object, if available.
Timestamp when the request was tracked (ms since epoch).
Full URL string of the request.
Represents a tracked HTTP request with its parsed details.
Captured when MSW handles a request through the
response:mockedlifecycle event.Example