add parse_http_accept_header utility method to simplify accept_encoding and accept_language