Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/graphql/deps.ts>Drash.Interfaces.IResource

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
interface Drash.Interfaces.IResource
import { type Drash } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/deps.ts";
const { IResource } = Drash.Interfaces;

path_parameters A key-value string defining the path parameters that were passed in by the request. This value is set in resource_handler.ts#getResource().

uri_paths_parsed See IResourcePathsParsed.

services The services that will be run before or after one of this resource's HTTP methods.

CONNECT() DELETE() GET() HEAD() OPTIONS() PATCH() POST() PUT() TRACE() If a request performs one of the above HTTP methods and the request is matched to this resource, then this method will be executed.

Properties

paths: string[]
optional
services: IResourceServices
optional
CONNECT: (request: DrashRequest, response: Response) => Promise<void> | void
optional
DELETE: (request: DrashRequest, response: Response) => Promise<void> | void
optional
GET: (request: DrashRequest, response: Response) => Promise<void> | void
optional
HEAD: (request: DrashRequest, response: Response) => Promise<void> | void
optional
OPTIONS: (request: DrashRequest, response: Response) => Promise<void> | void
optional
PATCH: (request: DrashRequest, response: Response) => Promise<void> | void
optional
POST: (request: DrashRequest, response: Response) => Promise<void> | void
optional
PUT: (request: DrashRequest, response: Response) => Promise<void> | void
optional
TRACE: (request: DrashRequest, response: Response) => Promise<void> | void