Skip to main content
The part of an Express response toExpress writes.

Methods

send()

Called once, with the handler’s response body as text.

Parameters

body
string

Returns

void

setHeader()

Called once per header the handler’s response carries.

Parameters

name
string
value
string

Returns

void

status()

Sets the status and returns the response, so the call chains into send.

Parameters

code
number

Returns

ExpressLikeResponse