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

x/sinco/tests/deps.ts>Drash.Request.create

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
method Drash.Request.create
import { Drash } from "https://deno.land/x/sinco@v4.1.0/tests/deps.ts";
const { Request } = Drash;

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.
pathParms: 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