MCPcopy Index your code
hub / github.com/oakserver/oak / ServerRequest

Interface ServerRequest

types.ts:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15export interface ServerRequest {
16 readonly headers: Headers;
17 readonly method: string;
18 readonly rawUrl?: string;
19 readonly remoteAddr: string | undefined;
20 readonly request?: Request;
21 readonly url: string;
22 // deno-lint-ignore no-explicit-any
23 error(reason?: any): void;
24 getBody(): ReadableStream<Uint8ArrayArrayBuffer> | null;
25 respond(response: Response): void | Promise<void>;
26 upgrade?(options?: UpgradeWebSocketOptions): WebSocket;
27}
28
29/** The abstract constructor interface that custom servers need to adhere to
30 * when using with an {@linkcode Application}. */

Callers 12

logErrorListenerFunction · 0.65
fnFunction · 0.65
getBodyMethod · 0.65
transformMethod · 0.65
constructorMethod · 0.65
fnFunction · 0.65
sendEventsMethod · 0.65
#handleRequestMethod · 0.65
fnFunction · 0.65
fnFunction · 0.65
upgradeMethod · 0.65
upgradeMethod · 0.65

Implementers 3

NativeRequesthttp_server_native_request.ts
BunRequesthttp_server_bun.ts
NodeRequesthttp_server_node.ts

Calls

no outgoing calls

Tested by

no test coverage detected