interface APIRequest
implements ServerRequest
import { type APIRequest } from "https://deno.land/x/aleph@v0.3.0-alpha.31/types.ts";
An interface extends the ServerRequest
for API requests.
Properties
readonly
query: URLSearchParamsMethods
readBody(type: "form"): Promise<MultipartFormData>
addHeader
adds a new value onto an existing response header of the request, or
adds the header if it does not already exist.
setHeader
sets a new value for an existing response header of the request, or adds
the header if it does not already exist.
redirect(url: string, status?: Status): this
redirect
replies to redirect the client to another URL with optional response status
defaulting to 302.