Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ResourceHandler

import { ResourceHandler } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";

This class works as a container for resource handlers. This class contains the paths where the resolver will be invoked. This class contains the locations where the resolver should look up for resources. This class contains the indexes of the paths. This class contains the resolver to be used when intercepting.

class ResourceHandler implements [[Mandarine.MandarineCore].IResourceHandler] {
public resourceCors: Mandarine.MandarineMVC.CorsMiddlewareOption | undefined;
public resourceHandlerIndex: Array<string> | undefined;
public resourceHandlerLocations: Array<string> | undefined;
public resourceHandlerPath: Array<RegExp> | undefined;
public resourceResolver: Mandarine.MandarineMVC.HTTPResolvers.ResourceResolver | undefined;
 
public addResourceHandler(...resourceHandlerPath: Array<RegExp>): ResourceHandler;
public addResourceHandlerIndex(...resourceHandlerIndex: Array<string>): ResourceHandler;
public addResourceHandlerLocation(...resourceHandlerLocations: Array<string>): ResourceHandler;
}

§Implements

§
[[Mandarine.MandarineCore].IResourceHandler]
[src]

§Properties

§
resourceHandlerIndex: Array<string> | undefined
[src]
§
resourceHandlerLocations: Array<string> | undefined
[src]
§
resourceHandlerPath: Array<RegExp> | undefined
[src]

§Methods

§
addResourceHandler(...resourceHandlerPath: Array<RegExp>): ResourceHandler
[src]
§
addResourceHandlerIndex(...resourceHandlerIndex: Array<string>): ResourceHandler
[src]
§
addResourceHandlerLocation(...resourceHandlerLocations: Array<string>): ResourceHandler
[src]