debugResponse()function
debugResponse(response: Response): string
| Param | Type | |
|---|---|---|
response | Response | The Response to debug. required |
| Return | |
|---|---|
string | A string in status statusText format. |
Convert a Response into a one-line debug string.
- Shows the status code and status text only (no headers or body).
Examples
debugResponse(new Response("hi", { status: 404 })) // "404 Not Found"