Skip to content

fix: migrate HTTP client usage to httpx2#948

Merged
fstagni merged 1 commit into
DIRACGrid:mainfrom
bndikt:replace-httpx-with-httpx2
Jun 16, 2026
Merged

fix: migrate HTTP client usage to httpx2#948
fstagni merged 1 commit into
DIRACGrid:mainfrom
bndikt:replace-httpx-with-httpx2

Conversation

@bndikt

@bndikt bndikt commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Migrates HTTP client usage from httpx to httpx2 across DiracX packages and tests.

This also switches router HTTP mocking from pytest-httpx to httpx2-pytest (see httpx2-pytest )

No usage of httpx was found in DIRAC.

Changes

  • Add httpx2 dependencies where needed.
  • Replace direct httpx imports/usages with httpx2.
  • Replace pytest-httpx router test mocking with httpx2-pytest.

Fixes #934

@read-the-docs-community

Copy link
Copy Markdown

@fstagni fstagni merged commit 88a5deb into DIRACGrid:main Jun 16, 2026
31 checks passed
@bndikt bndikt deleted the replace-httpx-with-httpx2 branch June 16, 2026 14:45
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.

Switch to httpx2

3 participants