| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/paste/ |
Upload File : |
Ñò
•ÊIc @ 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 &