Module

x/oak/middleware/serve.ts>serve

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
function serve
import { serve } from "https://dotland.deno.dev/x/oak@v17.1.2/middleware/serve.ts";

Wrap a handler function to generate middleware that can be used with an oak Application. This allows the handler to deal with a Fetch API standard {@link Request} and return a standard {@link Response}.

Parameters

middleware: ServeMiddleware<S>