Module

x/oak/mod.ts>HttpServerNative

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
class HttpServerNative
implements OakServer<NativeRequest>
import { HttpServerNative } from "https://dotland.deno.dev/x/oak@v13.2.5/mod.ts";

The oak abstraction of the Deno native HTTP server which is used internally for handling native HTTP requests. Generally users of oak do not need to worry about this class.

Constructors

new
HttpServerNative(app: Application<AS>, options: Omit<ServeOptions | ServeTlsOptions, "signal">)

Type Parameters

optional
AS extends State = Record<string, any>

Properties

readonly
app: Application<AS>
readonly
closed: boolean

Methods

close(): Promise<void>
listen(): Promise<Listener>
[Symbol.asyncIterator](): AsyncIterableIterator<NativeRequest>

Static Properties

type: "native"