Skip to content

ui-router-server / connect / ConnectResponse

Interface: ConnectResponse ​

Defined in: connect.ts:52

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?): void;

Defined in: connect.ts:58

Ends the response, optionally with a body.

Parameters ​

ParameterType
body?string

Returns ​

void


setHeader() ​

ts
setHeader(name, value): void;

Defined in: connect.ts:56

Sets one response header (the canonical Link on a shell verdict).

Parameters ​

ParameterType
namestring
valuestring

Returns ​

void


writeHead() ​

ts
writeHead(statusCode, ...rest): void;

Defined in: connect.ts:54

Writes the status line and headers; patched to relabel a status'd shell.

Parameters ​

ParameterType
statusCodenumber
...restunknown[]

Returns ​

void