Giter VIP home page Giter VIP logo

Comments (5)

kislyuk avatar kislyuk commented on June 10, 2024

Thanks, I'll take a look at making this package compatible with httpx. The first step would be to write a test case.

The reason you're not seeing body is that it's an attribute of PreparedRequest, not Request. The auth helper plugin operates on PreparedRequest.

from requests-http-signature.

kislyuk avatar kislyuk commented on June 10, 2024

(Reference: https://requests.readthedocs.io/en/latest/api/#requests.PreparedRequest)

from requests-http-signature.

max-tet avatar max-tet commented on June 10, 2024

Right, thanks for the clarification. AFAIK, httpx has no notion of a prepared request. But I guess that should not be a problem.

from requests-http-signature.

kislyuk avatar kislyuk commented on June 10, 2024

It looks like the httpx auth protocol is substantially different and will require a new package. Supporting httpx is outside the scope of this package, but can be accommodated by a new package in the pyauth project.

https://github.com/encode/httpx/blob/master/httpx/_auth.py

from requests-http-signature.

max-tet avatar max-tet commented on June 10, 2024

Thanks for looking into that. So httpx and Requests are not as compatible as advertised. I'll get back to using Requests then for the moment.

from requests-http-signature.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.