HttpResponseInit interface
Properties
body | HTTP response body |
cookies | HTTP response cookies |
enable |
Enable content negotiation of response body if true If false, treat response body as raw |
headers | HTTP response headers |
json |
A JSON-serializable HTTP Response body.
If set, the |
status | HTTP response status code |
Property Details
body
HTTP response body
body?: BodyInit
Property Value
BodyInit
cookies
enableContentNegotiation
Enable content negotiation of response body if true If false, treat response body as raw
enableContentNegotiation?: boolean
Property Value
boolean
headers
HTTP response headers
headers?: HeadersInit
Property Value
HeadersInit
jsonBody
A JSON-serializable HTTP Response body.
If set, the HttpResponseInit.body
property will be ignored in favor of this property
jsonBody?: any
Property Value
any
status
HTTP response status code
status?: number
Property Value
number