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

x/oak/middleware/serve.ts>serve

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function serve
import { serve } from "https://deno.land/x/oak@v13.2.1/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 Request and return a standard Response.

Parameters

middleware: ServeMiddleware<S>