| 13 | } |
| 14 | |
| 15 | export 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}. */ |
no outgoing calls
no test coverage detected