Moved http_parse_headers function to global namespace
Removed unnecessary variable + changed function names to underscore_case