Skip to main content
Extremely Popular
Go to Latest
method ServerContext.prototype.handler
import { ServerContext } from "https://deno.land/x/fresh@1.6.1/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>