ErrorHandler
Defines a generic error handler function type. This abstraction allows for custom error handling logic, which can be implemented by the consumer of the HTTP client.
type ErrorHandler = (context: ErrorHandlerContext) => Promise<any>;Defines a generic error handler function type. This abstraction allows for custom error handling logic, which can be implemented by the consumer of the HTTP client.
type ErrorHandler = (context: ErrorHandlerContext) => Promise<any>;