def get_encoding_from_headers(headers):
content_type = headers.get('<STR_LIT>')<EOL>if not content_type:<EOL><INDENT>return None<EOL><DEDENT>content_type, params = cgi.parse_header(content_type)<EOL>if '<STR_LIT>' in params:<EOL><INDENT>return params['<STR_LIT>'].strip("<STR_LIT>")<EOL><DEDENT>if '<STR_LIT:text>' in content_type:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>
Returns encodings from given HTTP Header Dict.

    :param headers: dictionary to extract encoding from.