x/oak/types.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
interface ServerRequest
import { type ServerRequest } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.2/types.ts?s=ServerRequest";

Properties

readonly
headers: Headers
[src]
readonly
method: string
[src]
readonly
optional
rawUrl: string
[src]
readonly
remoteAddr: string | undefined
[src]
readonly
optional
request: Request
[src]
readonly
url: string
[src]

Methods

error(reason?: any): void[src]
getBody(): ReadableStream<Uint8Array> | null[src]
respond(response: Response): void | Promise<void>[src]
optional
upgrade(options?: UpgradeWebSocketOptions): WebSocket
[src]