Comments (9)
We don't really have the bandwidth to make the switch, but if anyone wants to pick this up, patches are welcome!
from httptools.
@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.
Thanks to @victoraugustolls and everyone, this is done in #56. I'll get a release out soon.
from httptools.
Hey @elprans ! Do you have an opinion about moving to llhttp
? As http-parser
is no longer maintained :(
from httptools.
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.
Perfect! Thanks @indutny ! Will give it a go over the weekend!
from httptools.
Is there any progress?
from httptools.
Hey @abersheeran ! There is an open PR for it: #56
from httptools.
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)
- API change from 0.0.13->0.1.1 HOT 2
- Deprecation warnings in Python 3.10 HOT 3
- Wheel support for linux aarch64 HOT 1
- provide wheel for python3.9 HOT 9
- Note: httptools 0.0.13 from PyPI is incompatible with Python 3.9
- PROXY protocol v1 / v2 support
- [Security] Potential Secret Leak HOT 1
- Silent fail of long url parsing HOT 2
- Git release/tag for 0.2.0 pypi version HOT 2
- Wheels for httptools 0.2.0 on Python 3.10 HOT 1
- CVE-2021-22959 & CVE-2021-22960
- Doesn't build against Python 3.11 HOT 3
- Fail to get wheel for python 3.9.5 when pip install
- llhttp critical CVE's HOT 4
- How to do an early stop? HOT 2
- . HOT 1
- with curl and https HOT 1
- Error installing httptools as a uvicorn dependency HOT 2
- Create wheel for Python 3.12 HOT 1
- Support Cython 3.0+ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httptools.