Skip to main content
Module

x/pogo/lib/server.ts>default

Server framework for Deno
Go to Latest
class default
import { default } from "https://deno.land/x/pogo@v0.5.2/lib/server.ts";

A server represents your application and its ability to handle HTTP requests. Use pogo.server() to create a server instance.

Constructors

new
default(options: ServerOptions)

Properties

options: ServerOptions
optional
raw: http.Server
router: Router

Methods

inject(rawRequest: http.ServerRequest): Promise<Response>
respond(request: http.ServerRequest)
route(
route: RoutesList,
handler?: RouteHandler,
): this