Module

x/oak/http_server_native_request.ts>NativeRequest

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Go to Latest
class NativeRequest
implements ServerRequest
import { NativeRequest } from "https://dotland.deno.dev/x/oak@14.2.0/http_server_native_request.ts";

An internal oak abstraction for handling a Deno native request. Most users of oak do not need to worry about this abstraction.

Constructors

new
NativeRequest(request: Request, info: NativeRequestInfo)

Properties

readonly
body: ReadableStream<Uint8Array> | null
readonly
headers: Headers
readonly
method: string
readonly
rawUrl: string
readonly
remoteAddr: string | undefined
readonly
request: Request
readonly
response: Promise<Response>
readonly
url: string

Methods

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