Package backend :: Package wsgi :: Module wsgiRequest :: Class WsgiMPtable
[hide private]
[frames] | no frames]

Class WsgiMPtable

source code

This class emulates mod_python's mp_table. See
http://www.modpython.org/live/current/doc-html/pyapi-mptable.html

The table object is a wrapper around the Apache APR table. The table
object behaves very much like a dictionary (including the Python 2.2
features such as support of the in operator, etc.), with the following
differences:

...
- Duplicate keys are allowed (see add() below). When there is more
  than one value for a key, a subscript operation returns a list.

Much of the information that Apache uses is stored in tables.
For example, req.headers_in and req.headers_out.

Instance Methods [hide private]
 
__init__(self) source code
 
add(self, key, value) source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
items(self) source code
 
has_key(self, key) source code
 
keys(self) source code
 
__str__(self) source code