File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/response.pyo
�
a�Nc @ sz d Z d d l 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 j | | j | � � S( N( t dictt __getitem__t normalize( t selft key( ( s? /opt/alt/python27/lib/python2.7/site-packages/paste/response.pyR s c C s t j | | j | � | � d S( N( R t __setitem__R ( R R t value( ( s? /opt/alt/python27/lib/python2.7/site-packages/paste/response.pyR s c C s t j | | j | � � d S( N( R t __delitem__R ( R R ( ( s? /opt/alt/python27/lib/python2.7/site-packages/paste/response.pyR # s c C s t j | | j | � � S( N( R t __contains__R ( R R ( ( s? /opt/alt/python27/lib/python2.7/site-packages/paste/response.pyR &