interface Responder
implements CookieSetter
import { type Responder } from "https://dotland.deno.dev/x/servest@v1.3.4/responder.ts";
Basic responder for http response
Methods
respond(response: ServerResponse): Promise<void>
Respond to request Error will be thrown if request has already been responded. headers is merged with responseHeaders
sendFile(path: string, opts?: { contentDisposition?: "inline" | "attachment"; headers?: Headers; }): Promise<void>
Send file as a response. Content-Type will be guessed but may not be found. Default Content-Type is application/octet-stream
redirect(url: string, resp?: Partial<ServerResponse>): Promise<void>
Redirect request with 302 (Found )