Ñò ô†³Kc @ sz d Z d d k Z d e f d „ ƒ YZ d „ Z d „ Z d „ Z d „ Z e d „ Z d e d „ Z d e d „ Z d S( s# Routines to generate WSGI responsesiÿÿÿÿNt HeaderDictc B s’ e Z d Z d „ Z d „ Z d „ Z d „ Z e Z d d „ Z d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e e ƒ Z RS( sI This represents response headers. It handles the headers as a dictionary, with case-insensitive keys. Also there is an ``.add(key, value)`` method, which sets the key, or adds the value to the current value (turning it into a list if necessary). For passing to WSGI there is a ``.headeritems()`` method which is like ``.items()`` but unpacks value that are lists. It also handles encoding -- all headers are encoded in ASCII (if they are unicode). @@: Should that encoding be ISO-8859-1 or UTF-8? I'm not sure what the spec says. c C s t i | | i | ƒ ƒ S( N( t dictt __getitem__t normalize( t selft key( ( s2 /usr/lib/python2.6/site-packages/paste/response.pyR s c C s t i | | i | ƒ | ƒ d S( N( R t __setitem__R ( R R t value( ( s2 /usr/lib/python2.6/site-packages/paste/response.pyR s c C s t i | | i | ƒ ƒ d S( N( R t __delitem__R ( R R ( ( s2 /usr/lib/python2.6/site-packages/paste/response.pyR # s c C s t i | | i | ƒ ƒ S( N( R t __contains__R ( R R ( ( s2 /usr/lib/python2.6/site-packages/paste/response.pyR &