Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TimeoutHandler

Handler that will timeout requests if the response has not been written after a certain time. Timeout requests will be ended with an HTTP status code 503.

Hierarchy

  • TimeoutHandler

Implements

Index

Properties

Static Readonly DEFAULT_ERRORCODE

DEFAULT_ERRORCODE: number

The default error code

Static Readonly DEFAULT_TIMEOUT

DEFAULT_TIMEOUT: number

The default timeout, in ms

Methods

handle

Static create

  • Create a handler

    Returns TimeoutHandler

  • Create a handler

    Parameters

    • timeout: number

    Returns TimeoutHandler

  • Create a handler

    Parameters

    • timeout: number
    • errorCode: number

    Returns TimeoutHandler

Generated using TypeDoc