Parse HTTP Request and Response from String in Node.JS