Refactor http parser (parameters)