DebugHeaders 0.1

Debug headers (and bodies) of WSGI requests and responses

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
MIT/X Consortium License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Ian Bicking
HOMEPAGE:
pypi.python.org
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
DebugHeaders is a 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']).

Last updated on May 13th, 2010

requirements

#WSGI middleware #debug headers #WSGI requests #WSGI #middleware #debug #headers

Add your review!

SUBMIT