HttpResponseInit interface

Properties

body

HTTP response body

cookies

HTTP response cookies

enableContentNegotiation

Enable content negotiation of response body if true If false, treat response body as raw

headers

HTTP response headers

jsonBody

A JSON-serializable HTTP Response body. If set, the HttpResponseInit.body property will be ignored in favor of this property

status

HTTP response status code

Property Details

body

HTTP response body

body?: BodyInit

Property Value

BodyInit

cookies

HTTP response cookies

cookies?: Cookie[]

Property Value

Cookie[]

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