interface APIRequest
implements ServerRequest
import { type APIRequest } from "https://deno.land/x/aleph@v0.3.0-alpha.13/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.