Skip to content

Response ​

ResponseFull ​

ResponseFull = Prettify<As<"ResponseFull"> & object>

A complete response with all metadata and raw content.


ResponseViewModeOptions ​

ResponseViewModeOptions = object

Options for defining a custom response view mode.

Properties ​

label ​

label: string

The label of the view mode.

view ​

view: ComponentDefinition

The component to render when the view mode is selected.

when()? ​

optional when: (response: ResponseFull, request: RequestMeta | RequestFull) => boolean

A function that determines if the view mode should be shown for a given response.

Parameters ​
ParameterType
responseResponseFull
requestRequestMeta | RequestFull
Returns ​

boolean