class NativeRequest
implements ServerRequest
import { NativeRequest } from "https://deno.land/x/oak@v17.1.3/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> | nullreadonly
headers: Headersreadonly
request: Requestreadonly
response: Promise<Response>Methods
error(reason?: any): void
getBody(): ReadableStream<Uint8Array> | null
upgrade(options?: UpgradeWebSocketOptions): WebSocket