Skip to main content
Version: 23.10.0

ResponseForRequest interface

Required response data to fulfill a request with.

Signature

export interface ResponseForRequest

Properties

Property

Modifiers

Type

Description

Default

body

string | Uint8Array

contentType

string

headers

Record<string, string | string[] | unknown>

Optional response headers.

The record values will be converted to string following: Arrays' values will be mapped to String (Used when you need multiple headers with the same name). Non-arrays will be converted to String.

status

number