Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RuntimeConfigurationBuilder<Input, Output>

Type parameters

  • Input

  • Output

Hierarchy

  • RuntimeConfigurationBuilder

Index

Properties

Protected errorHandlers

errorHandlers: Array<ErrorHandler<Input, Output>> = []

Protected requestHandlerChains

requestHandlerChains: Array<GenericRequestHandlerChain<Input, Output>> = []

Protected requestInterceptors

requestInterceptors: Array<RequestInterceptor<Input>> = []

Protected responseInterceptors

responseInterceptors: Array<ResponseInterceptor<Input, Output>> = []

Methods

addErrorHandler

  • addErrorHandler(matcher: function, executor: function): this
  • Parameters

    • matcher: function
        • (input: Input, error: Error): Promise<boolean> | boolean
        • Parameters

          • input: Input
          • error: Error

          Returns Promise<boolean> | boolean

    • executor: function
        • (input: Input, error: Error): Promise<Output> | Output
        • Parameters

          • input: Input
          • error: Error

          Returns Promise<Output> | Output

    Returns this

addErrorHandlers

  • addErrorHandlers(...errorHandlers: Array<ErrorHandler<Input, Output>>): this

addRequestHandler

  • addRequestHandler(matcher: function, executor: function): this
  • Parameters

    • matcher: function
        • (input: Input): Promise<boolean> | boolean
        • Parameters

          • input: Input

          Returns Promise<boolean> | boolean

    • executor: function
        • (input: Input): Promise<Output> | Output
        • Parameters

          • input: Input

          Returns Promise<Output> | Output

    Returns this

addRequestHandlers

  • addRequestHandlers(...requestHandlers: Array<RequestHandler<Input, Output>>): this

addRequestInterceptors

addResponseInterceptors

  • addResponseInterceptors(...executors: Array<ResponseInterceptor<Input, Output> | function>): this

getRuntimeConfiguration