def add_response_headers(self, response, metrics):
        def sanitize(string):
            return string.title().replace(' ', '-')

        for module, module_values in metrics.items():
            for key, value in module_values.items():
                response['X-Speedbar-%s-%s' % (sanitize(module), sanitize(key))] = value
Adds all summary metrics to the response headers, so they can be stored in nginx logs if desired.
dataset/ETHPy150Open mixcloud/django-speedbar/speedbar/middleware.py/SpeedbarMiddleware.add_response_headers