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

x/oak/http_server_native.ts>Server

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