Skip to main content
Module

x/oak/mod.ts>serve

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function serve
import { serve } from "https://deno.land/x/oak@v14.1.0/mod.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.

Type Parameters

S extends State

Parameters

middleware: ServeMiddleware<S>

Returns

Middleware<S>