ACC SHELL
Ñò
rÄMc @ s] d Z d d k l Z l Z d d k Z e i d ƒ Z d d d „ Z d d d „ ƒ YZ d S(
sÓ 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.
iÿÿÿÿ( t ListTypet TupleTypeNs [ \(\)<>@,;:\\"/\[\]\?=]i c C s~ | d j oi t | ƒ d j oV | p t i | ƒ o- | i d d ƒ i d d ƒ } d | | f Sd | | f Sn | Sd S( s~ Convenience function to format and return a key=value pair.
This will quote the value if needed or if quote is true.
i s \s \\t "s \"s %s="%s"s %s=%sN( t Nonet lent tspecialst searcht replace( t paramt valuet quote( ( s% /usr/lib/python2.6/wsgiref/headers.pyt _formatparam s t Headersc B sž e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e Z d „ Z
d d „ Z d „ Z
d
„ Z d „ Z d „ Z d
„ Z d „ Z d „ Z RS( s, Manage a collection of HTTP response headersc C s0 t | ƒ t j o t d ƒ ‚ n | | _ d S( Ns+ Headers must be a list of name/value tuples( t typeR t TypeErrort _headers( t selft headers( ( s% /usr/lib/python2.6/wsgiref/headers.pyt __init__. s c C s
t | i ƒ S( s9 Return the total number of headers, including duplicates.( R R ( R ( ( s% /usr/lib/python2.6/wsgiref/headers.pyt __len__3 s c C s! | | =| i i | | f ƒ d S( s Set the value of a header.N( R t append( R t namet val( ( s% /usr/lib/python2.6/wsgiref/headers.pyt __setitem__7 s c C sS | i ƒ } g } | i D]( } | d i ƒ | j o | | q q ~ | i (d S( sy Delete all occurrences of a header, if present.
Does *not* raise an exception if the header is missing.
i N( t lowerR ( R R t _[1]t kv( ( s% /usr/lib/python2.6/wsgiref/headers.pyt __delitem__<