'Add request details to the \'request\' context
These fields will be filtered by SanitizePasswordsProcessor
as long as they are one of \'data\', \'cookies\', \'headers\', \'env\', and
\'query_string\'.'

@classmethod
def add_http_context(cls, client):

    HEADER_WHITELIST = ('user-agent', 'host', 'accept', 'accept-encoding', 'accept-language', 'referer')
    headers = {k: v for (k, v) in request.headers.iteritems() if (k.lower() in HEADER_WHITELIST)}
    client.http_context({'url': request.path, 'method': request.method, 'query_string': request.query_string, 'data': request.body, 'headers': headers})
    if ('app' in request.GET):
        client.tags_context({'app': request.GET['app']})
