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. All currently running calls of this client are canceled. When there is no active call, cancellation has no effect and never cancels a later call.
client = HttpClient() client.cancel()