Skip to content

refactor: use httpx in place of requests#156

Open
bolinocroustibat wants to merge 7 commits intomainfrom
httpx
Open

refactor: use httpx in place of requests#156
bolinocroustibat wants to merge 7 commits intomainfrom
httpx

Conversation

@bolinocroustibat
Copy link
Contributor

@bolinocroustibat bolinocroustibat commented Aug 28, 2025

httpx is designed to be a drop-in replacement of requests with very similar API.

  • httpx is actively maintained with regular releases and community contributions, while requests is in feature freeze and only receives occasional critical fixes.

  • httpx's support for asynchronous requests and HTTP/2 allows it to handle more requests in less time.

For simple synchronous use of GET, see comparative benchmarks here.

More quick-and-dirty benchmark:
screenshot 2025-09-01 at 19 08 33
Result:
screenshot 2025-09-01 at 19 08 21

More info and benchmarks between the two:
https://scrapingant.com/blog/requests-vs-httpx

@bolinocroustibat bolinocroustibat self-assigned this Aug 28, 2025
@bolinocroustibat bolinocroustibat force-pushed the httpx branch 2 times, most recently from 4ee628d to eeb5c84 Compare August 29, 2025 09:56
@bolinocroustibat bolinocroustibat changed the title perf: use httpx in place of requests refactor: use httpx in place of requests Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant