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