| ryah ( @ 2009-04-27 17:21:00 |
| Entry tags: | programming |
HTTP Parser
I extracted the HTTP parser from libebb and beefed it up. It now handles HTTP responses, and I gave it a bit of documentation, made various other little improvements.
* No dependencies
* Parses both requests and responses.
* Handles keep-alive streams.
* Decodes chunked encoding.
* Extracts the following data from a message
o header fields and values
o content-length
o request method
o response status code
o transfer-encoding
o http version
o request path, query string, fragment
o message bodysource repo: http://github.com/ry/http-parser/tree/ma
version 0.1: http://s3.amazonaws.com/four.livejournal/2