def get_headers(request, hide_env=True):
headers = dict(request.headers.items())<EOL>if hide_env and ('<STR_LIT>' not in request.args):<EOL><INDENT>for key in ENV_HEADERS:<EOL><INDENT>try:<EOL><INDENT>del headers[key]<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>return CaseInsensitiveDict(headers.items())<EOL>
Returns headers dict from request context.