Instance Methodasync-http-client 1.28.0AsyncHTTPClient
fail(reason:)
Initiate cancellation of a HTTP request with an error.
func fail(reason error: any Error) Parameters
- error
the error that is used to fail the promise
This method will return immeidately and doesn’t wait for the cancellation to complete.