Skip to content

HttpResponseLike

Defined in: types.ts:178

Minimal express-compatible response passed to HttpRouterLike handlers.

json(body): void

Defined in: types.ts:180

unknown

void


redirect(url): void

Defined in: types.ts:181

string

void


optional send(body): void

Defined in: types.ts:187

Send a raw pre-serialized string body (e.g. an HTML page). Strings starting with “<” are served as text/html, otherwise text/plain — mirroring Express’s res.send(). Optional: Express provides it natively; the koa/http adapters implement it.

string

void


status(code): this

Defined in: types.ts:179

number

this