1 from debug_toolbar.panels import DebugPanel
2 from django.template.loader import render_to_string
4 class HeaderDebugPanel(DebugPanel):
6 A panel to display HTTP headers.
9 # List of headers we want to display
13 'HTTP_ACCEPT_CHARSET',
14 'HTTP_ACCEPT_ENCODING',
15 'HTTP_ACCEPT_LANGUAGE',
40 'headers': dict([(k, self.request.META[k]) for k in self.header_filter if k in self.request.META]),
42 return render_to_string('debug_toolbar/panels/headers.html', context)