class Drash.Request
extends Request
import { Drash } from "https://dotland.deno.dev/x/drash@v2.7.0/tests/deps.ts";
const { Request } = Drash;
A class that holds the representation of an incoming request
Constructors
Methods
accepts(contentType: string): boolean
Check if the content type in question are accepted by the request.
end(): void
Set this request to end early? Calling this will tell the request to stop where it is at in the request-resource-response lifecycle and immediately return a response.
pathParam(name: string): string | undefined
Get a path parameter from the request based on the request's URL and the resource path it matched to.