graphql-python / gql

A GraphQL client in Python

Home Page:https://gql.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add retry logic to httpx Transport

mdlam92 opened this issue · comments

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

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

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

For async only:

  • you can use a permanent session for which retries are enabled by default and can be configured.

For sync and async:

Oh nice, this is awesome. Exactly what I was looking for! Thanks ❤️