Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Debug headers (and bodies) of WSGI requests and responses

Project Description

This WSGI middleware will display the headers of the incoming request and the outgoing response. You can also optionally display the request or response body.

Use it like this:

from debugheaders import DebugHeaders

def application(environ, start_response):
    blah blah blah

application = DebugHeaders(application,
                           show_body=True, show_response_body=True,
                           output='wsgi.errors')

show_body shows the request body, show_response_body does what you would expect, and this information is written to the stream given by output (defaults to stdout, can be any object with a .write() method, and 'wsgi.errors' is special and means to write to environ['wsgi.errors']).

Release History

Release History

This version
History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
DebugHeaders-0.1.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source May 13, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting