Current Path : /compat/linux/proc/68247/root/usr/local/lib/python2.5/wsgiref/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/root/usr/local/lib/python2.5/wsgiref/headers.pyo |
³ò h”Rc @ 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 ol t | ƒ d j oY | p t i | ƒ o0 | i d d ƒ i d d ƒ } d | | f Sq} d | | 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/local/lib/python2.5/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/local/lib/python2.5/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/local/lib/python2.5/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/local/lib/python2.5/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/local/lib/python2.5/wsgiref/headers.pyt __delitem__<