x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
class NativeRequest
implements ServerRequest
import { NativeRequest } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?s=NativeRequest";

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(requestEvent: RequestEvent, options?: NativeRequestOptions)
[src]

Properties

readonly
body: ReadableStream<Uint8Array> | null
[src]
readonly
donePromise: Promise<void>
[src]
readonly
headers: Headers
[src]
readonly
method: string
[src]
readonly
rawUrl: string
[src]
readonly
remoteAddr: string | undefined
[src]
readonly
request: Request
[src]
readonly
url: string
[src]

Methods

error(reason?: any): void[src]
getBody(): ServerRequestBody[src]
respond(response: Response): Promise<void>[src]
upgrade(options?: UpgradeWebSocketOptions): WebSocket[src]