-
Notifications
You must be signed in to change notification settings - Fork 47
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
HTTP/2 support #132
Comments
I think you'll find that supporting HTTP 2.0 is a much bigger topic than just changing the parser. I'd like it very much if we could! We probably have to deal with this fairly soon. |
@istathar Do you have idea what is the reason of the error |
@bapcyk The diagnostics (sic) out of attoparsec are so rubbish. I didn't know better in 2013 when I was writing this; nowadays I would optimize for comprehensible error messages over some notional and arguable idea of "performance". Do you have a way I can see the error you're seeing (is the URL public)? |
Unfortunately the URL is not public.
(curl output) and supposed that the problem maybe is in it. |
Well you're right it's trying to upgrade to an HTTP/2 connection. It's a radically different protocol. We're not in a particularly good place in Haskell client-wise there (ironically, we have an excellent HTTP/2 server in the http2 package). See there, and the [separate] http2-client package. I don't know how well along either of these things are, but HTTP 2.0 is complicated. I have a feeling we'd all be better off supporting their work. |
(fwiw at one site this http-streams package is handling 100 million requests [POSTs, in fact] a day no problem. So it's working fine. I just don't know what our upgrade path is) |
Ah, well, OK then. I will switch to another package currently. |
Nah, leave it open. It's something we need to work out. |
The function parseStatusLine expects "HTTP/1.X" but we have already "HTTP/2". For me, I get
Parse exception: not enough input
, not sure the cause, but maybe this function is a problem:?
The text was updated successfully, but these errors were encountered: