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']).
Metadata
Release files for DebugHeaders 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| DebugHeaders-0.1.tar.gz | 2.7 kB | Without provenance | Details for DebugHeaders-0.1.tar.gz |
Release files / DebugHeaders-0.1.tar.gz
| Download URL | DebugHeaders-0.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0496f009b987c18648caa88be4cf4e89b2a6b934c36d5914108c9def81ff66d2
|
|
BLAKE2b-256 checksum How to use checksums |
db0e36de6e0ef79dc63255ad9ac3e161ff1599d67d68594780f757629e50af4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for DebugHeaders 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.