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 |
Headers | Record<string, string | string[] | unknown> |
Optional response headers. Either a Headers instance or a plain record. 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 |