-
Notifications
You must be signed in to change notification settings - Fork 71
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
Response to HTTP messages over Tcp #107
Comments
^ also the example above simply closes a connection - but long term I'd like to be able to process |
Hi @drbh, I'm glad you find message-io useful :) If I understand well, you are implementing the HTTP server part in message-io, right? Until I know the header The In order to close the connection from the server perspective after sending the response, you could use |
Regarding the HTTP decoding part, you could use httparse, which tells if a request is completed or patial. The server will wait for more |
I think the issue can be closed, if not, please feel free to reopen it! |
After setting up
and then sending
I think I should be able to close an HTTP 1.1 request with the following message.
However the connection just hangs and fails to complete.
@lemunozm do you have any recommendations for handling HTTP requests over TCP?
message-io
is an awesome library and I'd love to replace a current server with it, but I need to be able to process HTTP requests. Thanks in advance!The text was updated successfully, but these errors were encountered: