Calm motion: animations on this site only fade, with no movement
Request inspector
One HTTP request and its response, with the headers and the bodies
Shows the detail of one call in a network panel, a webhook log, or an API playground.
Basic
POST
https://api.example.com/v1/carts/C-2291/checkout422 Unprocessable Content (client error)183 ms0.1 kB
{
"error": "coupon_expired",
"message": "The coupon LAUNCH ended on 1 November."
}
methodandurlname the request.statusandstatus-textgive the answer.- The status says its class in words: success, redirect, client error, or server error. An error gets a red frame.
durationis the time in milliseconds, andsizeis the size of the response body in bytes.requestandresponseeach haveheadersand abody. The tabs show the headers of both, the request body, and the response body.- A body in JSON gets indents. Each body is in a code block with a copy button.
localeformats the time and the size. Change the words withlabelsor a label pack. The API table lists the keys.
Usage
ts
import { BlessRequestInspector } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
method* | string | — | |
url* | string | — | |
status* | number | — | |
statusText | string | — | |
duration | number | — | how long it took, in milliseconds |
size | number | — | the size of the response body, in bytes |
request | BlessHttpMessage | — | |
response | BlessHttpMessage | — | |
locale | string | "en" | |
labels | Partial<{ headers: string; request: string; response: string; requestHeaders: string; responseHeaders: string; noBody: string; ok: string; redirect: string; clientError: string; serverError: string; }> | — |