Message86199
wsgiref.headers.Headers will let you manage a collection of HTTP
response headers, but the constructor forces you to provide a list:
>>> from wsgiref.headers import Headers
>>> headers = Headers([])
>>> headers.add_header('Content-Type', 'text/plain')
A logical change would be to allowed creating an empty Headers instance:
>>> from wsgiref.headers import Headers
>>> headers = Headers()
>>> headers.add_header('Content-Type', 'text/plain') |
|
Date |
User |
Action |
Args |
2009-04-20 16:01:05 | tarek | set | recipients:
+ tarek, pje |
2009-04-20 16:01:05 | tarek | set | messageid: <1240243265.38.0.0946630520568.issue5800@psf.upfronthosting.co.za> |
2009-04-20 16:01:04 | tarek | link | issue5800 messages |
2009-04-20 16:01:03 | tarek | create | |
|