Skip to main content
Module

x/pogo/lib/toolkit.ts>default

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

A response toolkit contains various utility methods for creating responses. Pogo passes a toolkit instance as the second argument to route handlers.

Constructors

new
default(request: Request)

Methods

directory(path: string, options?: DirectoryHandlerOptions): Promise<Response>
file(path: string, options?: FileHandlerOptions): Promise<Response>
redirect(url: string): Response