Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Extremely Popular
Go to Latest
method ServerContext.prototype.handler
import { ServerContext } from "https://deno.land/x/fresh@1.5.3/src/server/context.ts";

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

Returns

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