Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GlobalAfterHandler

Executed after all other handlers; fifth to be executed.

Hierarchy

Index

Methods

Methods

exec

  • Sets an executor on this handler. Executors run in order of registration.

    Parameters

    • func: function

      An executor that accepts an IncomingMessage, a Stoof, and a Map of query parameters.

        • (req: IncomingMessage, res: Stoof, params: Map<string, string>): void
        • Parameters

          • req: IncomingMessage
          • res: Stoof
          • params: Map<string, string>

          Returns void

    Returns GlobalAfterHandler

    This handler, for the sake of chaining.

when

  • Sets a filter on this handler. If the predicate fails, all executors registered after this filter won't run.

    Parameters

    • filter: function

      A predicate that accepts an IncomingMessage, a Stoof, and a Map of query parameters.

        • (req: IncomingMessage, res: Stoof, params: Map<string, string>): boolean
        • Parameters

          • req: IncomingMessage
          • res: Stoof
          • params: Map<string, string>

          Returns boolean

    Returns GlobalAfterHandler

    This handler, for the sake of chaining.

Generated using TypeDoc