Skip to content
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
POSThttps://api.example.com/v1/carts/C-2291/checkout
422 Unprocessable Content (client error)183 ms0.1 kB
json
{
  "error": "coupon_expired",
  "message": "The coupon LAUNCH ended on 1 November."
}
  • method and url name the request. status and status-text give the answer.
  • The status says its class in words: success, redirect, client error, or server error. An error gets a red frame.
  • duration is the time in milliseconds, and size is the size of the response body in bytes.
  • request and response each have headers and a body. 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.
  • locale formats the time and the size. Change the words with labels or a label pack. The API table lists the keys.

Usage ​

ts
import { BlessRequestInspector } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
method*string—
url*string—
status*number—
statusTextstring—
durationnumber—how long it took, in milliseconds
sizenumber—the size of the response body, in bytes
requestBlessHttpMessage—
responseBlessHttpMessage—
localestring"en"
labelsPartial<{ headers: string; request: string; response: string; requestHeaders: string; responseHeaders: string; noBody: string; ok: string; redirect: string; clientError: string; serverError: string; }>—

Released under the MIT License. Character names and artwork belong to their owners.