Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak/http_server_native_request.ts>NativeRequest

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