Skip to content

[Feature] Migrate from requests to httpx #54

@RafaelJohn9

Description

@RafaelJohn9

Subcategory

feature-enhancement - Improving existing features

Description

httpx offers more functionality compared to requests which includes async support. We are planning to add async support .

Issue tasks

  • Change use of requests to httpx inside /mpesakit/http_client/mpesa_http_client.py
  • Update unit tests (/tests/unit/http_client/test_mpesa_http_client.py) to import and use httpx instead of requests
  • Update unit tests( tests/integration/mpesa_express/test_stk_push_e2e.py) to import and use httpx instead of requests

Motivation

To be able to support async support in the future

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Labels

enhancementNew feature or requestfeaturenew feature proposalfeature-requestNew feature request/enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions