Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/replace hyper with httpx #161

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

paulskeie
Copy link

Replace hyper with httpx for HTTP/2 client

This PR replaces the hyper HTTP/2 client library with httpx. The main changes are:

Changes

  • Replace hyper dependency with httpx (>=0.24.0)
  • Update client connection handling to use httpx Client
  • Update credentials module to use httpx for connections
  • Update tests to mock httpx instead of hyper
  • Add Python 3.10-3.12 support
  • Set explicit Python version range (>=3.7,<4.0)

Testing

All tests pass with the new httpx implementation:

  • Unit tests updated to mock httpx client
  • Integration tests working with APNs sandbox
  • Token and certificate auth both functional

Migration Notes

  • No API changes required for users
  • Same functionality maintained
  • Better HTTP/2 support through httpx
  • Improved connection handling
  • More robust error handling

Dependencies

  • Added httpx>=0.24.0
  • Removed hyper
  • Updated Python version support (3.7-3.12)

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