Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/drash/src/http/request.ts>DrashRequest.create

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
method DrashRequest.create
import { DrashRequest } from "https://deno.land/x/drash@v2.8.1/src/http/request.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
optional
options: RequestOptions
  • Any options to control the way requests behave.