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

x/hex/src/service/deps.ts>oak.HttpServerNative

An ecosystem delivering practices, philosophy and portability.
Go to Latest
class oak.HttpServerNative
implements Server<NativeRequest>
import { oak } from "https://deno.land/x/hex@0.5.15/src/service/deps.ts";
const { HttpServerNative } = oak;

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.

Type Parameters

optional
AS extends State = Record<string, any>

Properties

readonly
app: Application<AS>
readonly
closed: boolean

Methods

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