x/oak/http_server_native_request.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
class NativeRequest
implements ServerRequest
import { NativeRequest } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.2/http_server_native_request.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(request: Request, info: NativeRequestInfo)
[src]

Properties

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

Methods

error(reason?: any): void[src]
getBody(): ReadableStream<Uint8Array> | null[src]
respond(response: Response): void[src]