Skip to main content
Module

x/fresh/server.ts>ServerContext

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

Constructors

new
ServerContext(
state: InternalFreshState,
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

fromManifest(manifest: Manifest, config: FromManifestConfig): Promise<ServerContext>

Process the manifest into individual components and pages.