Giter VIP home page Giter VIP logo

Comments (9)

elprans avatar elprans commented on August 21, 2024 1

We don't really have the bandwidth to make the switch, but if anyone wants to pick this up, patches are welcome!

from httptools.

indutny avatar indutny commented on August 21, 2024 1

@victoraugustolls I'd be happy to help!

You basically need to do what Node.js does at this moment if you'd like to raise an error from the on_body/etc callbacks:

      llhttp_set_error_reason(&parser_, "HPE_JS_EXCEPTION:JS Exception");
      return HPE_USER;

from httptools.

fantix avatar fantix commented on August 21, 2024 1

Thanks to @victoraugustolls and everyone, this is done in #56. I'll get a release out soon.

from httptools.

victoraugustolls avatar victoraugustolls commented on August 21, 2024

Hey @elprans ! Do you have an opinion about moving to llhttp? As http-parser is no longer maintained :(

from httptools.

victoraugustolls avatar victoraugustolls commented on August 21, 2024

Hi @elprans ! I'm trying to take this one here: https://github.com/victoraugustolls/httptools

I'm having some trouble with the tests due to some missing exceptions between http-parser and llhttp. Could you help me? Or point me someone to help?

The problem is that there are no callback errors for on_body, on_header, on_url and on_status. Other point is that I had to change how the upgrade works, but don't know if this is correct.

Maybe @indutny can help also? (sorry if tagging you here is wrong)

from httptools.

victoraugustolls avatar victoraugustolls commented on August 21, 2024

Perfect! Thanks @indutny ! Will give it a go over the weekend!

from httptools.

abersheeran avatar abersheeran commented on August 21, 2024

Is there any progress?

from httptools.

victoraugustolls avatar victoraugustolls commented on August 21, 2024

Hey @abersheeran ! There is an open PR for it: #56

from httptools.

1st1 avatar 1st1 commented on August 21, 2024

We've hit a delay with EdgeDB, but integrating httptools deeper in it is on my immediate todo. And so I'll be closely looking at that and will also likely release uvloop for 3.9. Sorry for the delay.

from httptools.

Related Issues (20)

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.