import { HttpRequest } from "https://deno.land/x/entropy@1.0.0-beta.17/src/http/http.module.ts";
Constructors
new
HttpRequest(request: Request, info?: Deno.ServeHandlerInfo)Properties
Methods
$setMatchedPattern(pattern: RoutePath)
boolean(name: string): Promise<boolean>
cookie(name: string): string | undefined
createRedirect(): Promise<Response>
createRedirectBack(variables?: Record<string, unknown>, statusCode?): Promise<Response>
flash(key: string, value: unknown): Promise<void>
flashed<TValue = unknown>(key: string): Promise<TValue | undefined>
header(name: string): string | undefined
input(name: string): Promise<string | undefined>
integrity(): string
ip(): string | undefined
isAjaxRequest(): boolean
isFormRequest(): Promise<boolean>
isMultipartRequest(): Promise<boolean>
isSecure(): boolean
isStaticFileRequest(): Promise<boolean>
json(): Promise<Record<string, unknown>>
method(): Promise<HttpMethod>
pattern(): string | undefined
port(): number
protocol(): string
queryParam(name: string): string | undefined
queryString(): string
referrer(): string
translate(text: string, quantity?): string
url(): string