Skip to main content
Module

x/drash/mod.ts>Request.create

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
method Request.create
import { Request } from "https://deno.land/x/drash@v2.7.0/mod.ts";

Create a Drash request object. We use this method to create request objects because we need to use async-await and cannot use them in constructor methods. This is the only reason for this abstraction.

Parameters

request: Request
  • The original request.
pathParams: Map<string, string>
  • The path params to match the request's URL to. The path params come from a resource's path(s).
connInfo: ConnInfo
  • The connection info Deno provides on a new request