graphql-python / gql

A GraphQL client in Python
https://gql.readthedocs.io
MIT License
1.56k stars 180 forks source link

Add retry logic to httpx Transport #470

Closed mdlam92 closed 9 months ago

mdlam92 commented 9 months ago

It would be dope if the httpx Transport had support for retry logic like the requests one does.

leszekhanusz commented 9 months ago

For which transport, the sync or async one? HTTPXTransport or HTTPXAsyncTransport?

mdlam92 commented 9 months ago

I personally only use the synchronous one. But I'm sure folks would like support in both.

leszekhanusz commented 9 months ago

For async only:

For sync and async:

mdlam92 commented 9 months ago

Oh nice, this is awesome. Exactly what I was looking for! Thanks :heart: