x/oak/http_server_native.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
class Server
import { Server } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.3/http_server_native.ts?s=Server";

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">)
[src]

Type Parameters

optional
AS extends State = Record<string, any>
[src]

Properties

readonly
app: Application<AS>
[src]
readonly
closed: boolean
[src]

Methods

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