Skip to content

GenericResponse

Defined in: types.ts:141

Generic HTTP response interface (framework-agnostic)

header(name, value): void

Defined in: types.ts:150

Set response header

string

string

void


isWritable(): boolean

Defined in: types.ts:165

Check if response is writable

boolean


send(data): void

Defined in: types.ts:155

Send JSON response

any

void


status(code): void

Defined in: types.ts:145

Set HTTP status code

number

void


stream(generator): Promise<void>

Defined in: types.ts:160

Send streaming response (SSE)

AsyncGenerator<any, void, undefined>

Promise<void>