Skip to main content
Deno 2 is finally here 🎉️
Learn more
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://deno.land/x/oak@v17.1.2/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