DebugHeadersDebug headers (and bodies) of WSGI requests and responses | |
Download |
DebugHeaders Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Ian Bicking
- Publisher web site:
- http://sqlobject.org/
DebugHeaders Tags
DebugHeaders Description
Debug headers (and bodies) of WSGI requests and responses 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 DebugHeadersdef application(environ, start_response): blah blah blahapplication = 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). Requirements: · Python
DebugHeaders Related Software