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

x/fresh/server.ts>ServerContext#handler

The next-gen web framework.
Extremely Popular
Go to Latest
method ServerContext.prototype.handler
Re-export
import { ServerContext } from "https://deno.land/x/fresh@1.6.7/server.ts";

This functions returns a request handler that handles all routes required by Fresh, including static files.

Returns

(req: Request, connInfo?: ServeHandlerInfo) => Promise<Response>