http-string-parser
Parse HTTP messages (Request and Response) from raw string in Node.JS
Parse HTTP Messages
var parser = ; request = parser;response = parser; console;console;
See more about Request and Response data model.
API Reference
parseRequest(requestString)
parseRequestLine(requestLine)
parseResponse(responseString)
parseStatusLine(statusLine)
parseHeaders(headersLinesArray)
NOTE: Proof of concept, naive HTTP parsing, wheel re-inventation. In future it may be replaced with better parser from Node.JS core's C bindings of NGINX HTTP parser or PEG.js HTTP parser