Creates a new CallbackHandler instance.
Object containing request and response callback functions
Callback function to be invoked before sending a request.
Callback function to be invoked after receiving a response.
Handles the request callback by invoking it with sanitized parameters. Removes headers from the parameters before passing to the callback.
The request parameters to pass to the callback
Handles the response callback by invoking it with the resolved response. Waits for the response promise to resolve before invoking the callback.
The response promise to handle
A promise that resolves when the callback completes
CallbackHandler class to be used with callbacks provided by user in requests. Manages request and response lifecycle callbacks for API operations.
CallbackHandler