Class HttpMiddlewareApi

Hierarchy

  • HttpMiddlewareApi

Constructors

Properties

Methods

  • Per default middlewares are executed in the order they were registered. The default order is 0. A lower order means the middleware is executed earlier.

    Parameters

    • order: number

    Returns void

  • When the middleware does not respond (either calling next() or sending headers) withing milliseconds, automatically the next is executed and warning printed.

    Parameters

    • timeout: number

    Returns void

Generated using TypeDoc