You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently using aiohttp. Pros: mature, apparently lightweight with good performance. Cons: no HTTP2 support. httpx supports async and http2 but has a reputation for being heavier than aiohttp. I've not seen actual benchmarks to back that up though. httpx is implemented on top of httpcore, which is a low-level HTTP library which uses h2 for HTTP2 support, and supports async. This looks like it could be a good option as we don't need any high level features that httpx provides by wrapping it.
It would be sub-optimal to depend on both aiohttp and httpcore, so if we do support both it seems like we should either make both optional, or support one by default and make the other optional.
The text was updated successfully, but these errors were encountered:
Currently using aiohttp. Pros: mature, apparently lightweight with good performance. Cons: no HTTP2 support. httpx supports async and http2 but has a reputation for being heavier than aiohttp. I've not seen actual benchmarks to back that up though. httpx is implemented on top of httpcore, which is a low-level HTTP library which uses h2 for HTTP2 support, and supports async. This looks like it could be a good option as we don't need any high level features that httpx provides by wrapping it.
It would be sub-optimal to depend on both aiohttp and httpcore, so if we do support both it seems like we should either make both optional, or support one by default and make the other optional.
The text was updated successfully, but these errors were encountered: