The abstract constructor interface that custom servers need to adhere to
when using with an Application
.
new<AS extends State = Record<string, any>>(app: Application<AS>,options: Omit<ServeOptions | ServeTlsOptions, "signal">,): OakServer<T>
A middleware framework for handling HTTP with Deno, Node.js, Bun and Cloudflare Workers 🐿️🦕🥟⚙️
The abstract constructor interface that custom servers need to adhere to
when using with an Application
.
new<AS extends State = Record<string, any>>(app: Application<AS>,options: Omit<ServeOptions | ServeTlsOptions, "signal">,): OakServer<T>
Add Package
deno add jsr:@oak/oak
Import symbol
import { type ServerConstructor } from "@oak/oak";
---- OR ----
Import directly with a jsr specifier
import { type ServerConstructor } from "jsr:@oak/oak";
Add Package
npx jsr add @oak/oak
Import symbol
import { type ServerConstructor } from "@oak/oak";
Add Package
yarn dlx jsr add @oak/oak
Import symbol
import { type ServerConstructor } from "@oak/oak";
Add Package
pnpm dlx jsr add @oak/oak
Import symbol
import { type ServerConstructor } from "@oak/oak";
Add Package
bunx jsr add @oak/oak
Import symbol
import { type ServerConstructor } from "@oak/oak";