Implemented request parser to parse headers and body of http request.