import { Server } from "https://deno.land/x/peko@v1.2.4/mod.ts";
Properties
middleware: SafeMiddleware[]
Methods
listen(port?: number, cb?: (params: { hostname: string; port: number; }) => void): void
Start listening to HTTP requests. Peko's requestHandler provides routing, cascading middleware & error handling.
requestHandler(request: Request): Promise<Response>