Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias Dictionaries

    the state spoolProxy keeps for dictionary: checked options, the dictionaries and the counters

    type Dictionaries = {
        stats: DictionaryStats;
        applies(request: Request, response: Response): boolean;
        apply(request: Request, response: Response): Promise<Response>;
    }
    Index
    • whether a response could take part, by its content type and the request's method and path

      Parameters

      • request: Request
      • response: Response

      Returns boolean

    • answers one origin response for request, registering it and encoding it when the request names a stored dictionary

      Parameters

      • request: Request
      • response: Response

      Returns Promise<Response>