Module

x/oak/types.ts>ServerRequest

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

Properties

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

Methods

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