Module

x/fresh/src/server/context.ts>ServerContext

The next-gen web framework.
Extremely Popular
Latest
class ServerContext
import { ServerContext } from "https://dotland.deno.dev/x/fresh@1.7.3/src/server/context.ts";

Constructors

new
ServerContext(
extractResult: FsExtractResult,
snapshot: Builder | BuildSnapshot | Promise<BuildSnapshot>,
)

Methods

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

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

Static Methods

Process the manifest into individual components and pages.