Package wsgiref :: Module headers
[hide private]
[frames] | no frames]

Module headers

Manage HTTP Response Headers

Much of this module is red-handedly pilfered from email.Message in the stdlib, so portions are Copyright (C) 2001,2002 Python Software Foundation, and were written by Barry Warsaw.

Classes [hide private]
Headers
Manage a collection of HTTP response headers
Functions [hide private]
 
_formatparam(param, value=None, quote=1)
Convenience function to format and return a key=value pair.
Variables [hide private]
  tspecials = re.compile(r'[ \(\)<>@,;:\\"/\[\]\?=]')

Imports: ListType, TupleType, re


Function Details [hide private]

_formatparam(param, value=None, quote=1)

 

Convenience function to format and return a key=value pair.

This will quote the value if needed or if quote is true.