ui-router-server / connect / ConnectResponse
Interface: ConnectResponse
Defined in: connect.ts:43
The subset of http.ServerResponse the middleware writes. writeHead is variadic to admit Node's (status, statusMessage?, headers?) overloads — the relabeling patch must forward whichever shape the downstream used.
Methods
end()
ts
end(body?): unknown;Defined in: connect.ts:49
Ends the response, optionally with a body.
Parameters
| Parameter | Type |
|---|---|
body? | string |
Returns
unknown
setHeader()
ts
setHeader(name, value): unknown;Defined in: connect.ts:47
Sets one response header (the canonical Link on a shell verdict).
Parameters
| Parameter | Type |
|---|---|
name | string |
value | string |
Returns
unknown
writeHead()
ts
writeHead(statusCode, ...rest): unknown;Defined in: connect.ts:45
Writes the status line and headers; patched to relabel a status'd shell.
Parameters
| Parameter | Type |
|---|---|
statusCode | number |
...rest | unknown[] |
Returns
unknown