Skip to main content
Module

x/easyroute/EasyRequest.ts>EasyRequest

A simple and pragmatic approach to routing Deno web requests.
Latest
class EasyRequest
import { EasyRequest } from "https://deno.land/x/easyroute@0.2.0/EasyRequest.ts";

Constructors

new
EasyRequest(request: Request, connInfo: ConnInfo)

Properties

body: string
bodyVars: Record<string, any>
connInfo: ConnInfo
contentLength: string
contentType: string
cookieVars: Record<string, string>
domain: string
ext: string
filename: string
fragment: string
host: string
hostname: string
ip: string
language: string
method: string
origin: string
path: string
pathVars: Record<string, string>
port: number
protocol: string
query: string
queryVars: Record<string, string>
referer: string
request: Request
subdomain: string
tld: string
url: string
userAgent: string

Methods

matchRoute(route: string): boolean