î i f ã @ sJ d Z d d l Z e j d ƒ Z d d d d „ Z Gd d „ d ƒ Z d S) zÓ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. é Nz[ \(\)<>@,;:\\"/\[\]\?=]é c C sx | d k rp t | ƒ d k rp | s3 t j | ƒ r_ | j d d ƒ j d d ƒ } d | | f Sd | | f Sn | Sd S) z~Convenience function to format and return a key=value pair. This will quote the value if needed or if quote is true. Nr ú\z\\ú"z\"z%s="%s"z%s=%s)ÚlenÚ tspecialsÚsearchÚreplace)ZparamÚvalueZquote© r ú4/opt/alt/python34/lib64/python3.4/wsgiref/headers.pyÚ_formatparam s r c @ så e Z d Z d Z d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d! d" „ Z d# d$ „ Z d S)%ÚHeadersz,Manage a collection of HTTP response headersc C s_ t | ƒ t k r! t d ƒ ‚ n | | _ x. | D]&