public cancel() as Void
Requests cancellation of the HTTP call currently running for this client.
This method is cooperative at the API level and backed by native process cancellation for the default curl transport on Windows and POSIX platforms. A cancellation racing with process startup is also honored.
client = HttpClient() client.cancel()