Skip to content

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 ​

ParameterType
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 ​

ParameterType
namestring
valuestring

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 ​

ParameterType
statusCodenumber
...restunknown[]

Returns ​

unknown