Class default<InputType, ResponseInnerType, MiscRespType, PathParamsType, QueryParamsType>

Represents a transaction object that handles the execution of a request and manages the response.

Type Parameters

  • InputType = never

    The type of the input data for the transaction.

  • ResponseInnerType = null

    The type of the inner response data for the transaction.

  • MiscRespType = never

    The type of miscellaneous response data for the transaction.

  • PathParamsType = StringMap
  • QueryParamsType = StringMap

Hierarchy (view full)

Constructors

Properties

logger: default

A logger object used for logging messages, errors, and other information.

publisher: default

The publisher of the content.

The request object for making a request of type InputType.

responseProxy: null | ((response: default<ResponseInnerType>) => Promise<void>)

A function that acts as a response proxy for a given response object.

The response object to proxy.

A promise that resolves to void.

Methods

  • Get the remaining time in milliseconds for the current execution context.

    Returns number

    The remaining time in milliseconds, or -1 if the time is not available.