v8.5.0b1
Pre-release
Pre-release
-
#1246 Update generated code for beta
-
#1239 Beta: Collapse HTTPClientAsync into HTTPClient
⚠️ Removes thestripe.default_http_client_async
global and thestripe.HTTPClientAsync
class.- To set your own async-enabled http client, set
stripe.default_http_client
to a subclass ofstripe.HTTPClient
such asstripe.HTTPXClient
that implements.request_async
,.sleep_async
,.request_stream_async
, and.close_async
. - The default http client of the library is still
RequestsClient
for synchronous methods, that "falls back" to aHTTPXClient
when asynchronous methods are called.
- To set your own async-enabled http client, set