Skip to main content
Module

x/oak/http_server_native_request.ts>NativeRequest

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Extremely Popular
Go to Latest
class NativeRequest
implements ServerRequest
import { NativeRequest } from "https://deno.land/x/oak@v15.0.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