Class RuntimeConfigurationBuilder<Input, Output>
Hierarchy
-
RuntimeConfigurationBuilder
Properties
Protected requestHandlerChains
Protected requestInterceptors
Protected responseInterceptors
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
Returns Promise<boolean>
|
boolean
-
executor: function
-
- (input: Input): Promise<Output> | Output
-
Parameters
Returns Promise<Output>
|
Output
Returns this
addRequestHandlers
- addRequestHandlers(...requestHandlers: Array<RequestHandler<Input, Output>>): this
addResponseInterceptors
- addResponseInterceptors(...executors: Array<ResponseInterceptor<Input, Output> | function>): this