-
In my search for a good, pure-ruby HTTP Parser, I ran into Protocol::HTTP. I think it's perfect for my use case, but I'm having some trouble actually integrating it into my project. Pretty much all of the examples across the Protocol::HTTP libraries assume it's being used in the context of Async-http, making it difficult to figure out how things may work without Async-http. I'm currently stuck here. My application currently hangs at L23. At this point, the response has already been properly formed, but it fails to actually deliver it to the client (i.e. my browser). When I turn the server off via SIGINT, the response is displayed. The code is essentially identical to
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
This is a reasonable use case and it's great that the gem/code is useful to you. I don't see anything wrong with your code, but |
Beta Was this translation helpful? Give feedback.
-
Hi @ioquatix , I think I may have found an issue with the screencapture.mp4 |
Beta Was this translation helpful? Give feedback.
Can you check socketry/protocol-http1@4b46cff and let me know how you get on.
Make sure you read the request body if any before reading the next request.