Skip to content

refactor: First migration attempt from requests to httpx.#187

Merged
bvanelli merged 4 commits into
mainfrom
refactor/migrate-from-requests-to-httpx
Mar 8, 2026
Merged

refactor: First migration attempt from requests to httpx.#187
bvanelli merged 4 commits into
mainfrom
refactor/migrate-from-requests-to-httpx

Conversation

@bvanelli
Copy link
Copy Markdown
Owner

@bvanelli bvanelli commented Mar 7, 2026

There are a couple of reasons to do this:

  • requests is in maintanance mode, and doesn't really support modern things like http2
  • For me, the first resolution is much faster, possibly because requests needs a lot more time to establish a first connection. I believe this only affects IPV6 resolution with DuckDNS. Performance seems to be similar with other benchmarks I ran.
  • httpx can support asyncio in the future, if I can think of a good enough integration (straight forward support for both sync and async).
  • httpx seems to be one of the more modern and stable libraries out there.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.01%. Comparing base (cb6eb96) to head (aa71944).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #187      +/-   ##
==========================================
+ Coverage   97.94%   98.01%   +0.07%     
==========================================
  Files          21       21              
  Lines        3117     3131      +14     
==========================================
+ Hits         3053     3069      +16     
+ Misses         64       62       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bvanelli bvanelli merged commit df250ee into main Mar 8, 2026
9 checks passed
@bvanelli bvanelli deleted the refactor/migrate-from-requests-to-httpx branch March 8, 2026 19:35
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