import { ServerContext } from "https://deno.land/x/fresh@1.3.1/src/server/mod.ts";
Constructors
new
ServerContext(routes: Route[],
islands: Island[],
staticFiles: StaticFile[],
renderfn: RenderFunction,
middlewares: MiddlewareRoute[],
app: AppModule,
notFound: UnknownPage,
error: ErrorPage,
plugins: Plugin[],
configPath: string,
jsxConfig: JSXConfig,
dev?: boolean,
routerOptions: RouterOptions,
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, opts: FreshOptions): Promise<ServerContext>
Process the manifest into individual components and pages.