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.Resource

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
class Drash.Resource
implements [[Drash.Interfaces].IResource]
import { Drash } from "https://deno.land/x/sinco@v4.1.0/tests/deps.ts";
const { Resource } = Drash;

This is the base resource class for all resources. All resource classes must extend this base resource class.

Drash defines a resource according to the MDN at the following page:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web

Methods

redirect(
location: string,
response: Drash.Response,
status?,
): void

Redirect the incoming request to another resource