x/oak/types.ts

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

The abstract constructor interface that custom servers need to adhere to when using with an Application.

Properties

prototype: OakServer<T>[src]
optional
type: "native" | "node" | "bun"
[src]

Methods

new<AS extends State = Record<string, any>>(app: Application<AS>, options: Omit<ServeOptions | ServeTlsOptions, "signal">): OakServer<T>[src]