Type Alias Dictionaries
type Dictionaries = {
stats: DictionaryStats;
applies(request: Request, response: Response): boolean;
apply(request: Request, response: Response): Promise<Response>;
}
stats: DictionaryStats;
applies(request: Request, response: Response): boolean;
apply(request: Request, response: Response): Promise<Response>;
}
Methods
applies
-
whether a response could take part, by its content type and the request's method and path
Parameters
- request: Request
- response: Response
Returns boolean
apply
-
answers one origin response for
request, registering it and encoding it when the request names a stored dictionaryParameters
- request: Request
- response: Response
Returns Promise<Response>
the state
spoolProxykeeps fordictionary: checked options, the dictionaries and the counters