introspectValue (data/value-introspect.ts)

open-headers · packages/ui/src/panel/data/value-introspect.ts · typescript · Apache-2.0
auth

Detects and parses values like JWT, JSON, URL-encoded, and base64 into structured representations for display

// Source: https://github.com/OpenHeaders/open-headers | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Pure introspection of an arbitrary string value — runs the shared
 * value-detection registry (the same rules that put edit icons on
 * workbench rails) and maps the hit onto the panel's view vocabulary.
 * Drives the inline value expander shared by the headers and cookies
 * tabs, and carries the registry hit itself so row surfaces can open
 * the shared viewer modals on it.
 *
 * JWT / JSON / URL-encoded / base64 keep their dedicated renderings
 * (parsed claims, JSON tree text, decoded panes); every other registry
 * kind maps to the generic `decoded` rendering — the co

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key