unioslo / harborapi

Python async client for the Harbor REST API v2.0.
https://unioslo.github.io/harborapi/
MIT License
28 stars 5 forks source link

Expose all `httpx.AsyncClient` kwargs in `HarborAsyncClient` constructor #43

Open pederhan opened 1 year ago

pederhan commented 1 year ago

Tasks


For maximum compatibility with all the different setups out there, we should expose every httpx.AsyncClient constructor kwarg, so that users have more control over the HTTP(S) client.

Considerations

This, of course, makes it more difficult to switch to a different underlying HTTP(S) library under the hood, but there are no indications HTTPX will stop being maintained or superseded by a different library. So this seems like an acceptable change.