pyroxide.model.httprequest (version 19 , 2006-12-10 23:18:58 -0800 (Sun, 10 Dec 2006) )
index
/usr/lib/python2.4/site-packages/pyroxide/model/httprequest.py

The HTTP Request module.

 
Modules
       
logging

 
Classes
       
HTTPRequest

 
class HTTPRequest
    An HTTP request as passed through by mod_python.  READ-ONLY
 
  Methods defined here:
__init__(self, apache_req)
__repr__(self)
getArgs(self)
Return the pyroxide.model.httprequest.HTTPRequestArgs object.
getBrowserLangPrefs(self)
Return a list of browser language preferences.
getCGIVars(self)
Return a dictionary of typical CGI environment variables.
getConfig(self)
Return a SafeConfigParser object containing the Pyroxide
configuration.
getCookies(self)
Return a SimpleCookie object containing the cookies present in the
request header.
getFormData(self)
Return the form data as a simple dictionary.
 
This method uses lazy loading whereby the items are only loaded into the 
dictionary if the method is called upon.
getHeaders(self)
Return a dictionary of headers present in the request.
getModPythonConfig(self)
Return the low-level mod_python configuration dictionary.
getModPythonOptions(self)
Return the low-level mod_python options dictionary.
getModPythonReq(self)
Return the underlying mod_python request object.
 
This exposes low-level mod_python/apache structures and should only
be used if you understand them well.
getPath(self)
Return the path portion of the URI from the request.
 
This will return the unencoded form of the URI without any possible
arguments.  Otherwise it is identical to the return of getURI()
getProtocol(self)
Return the method and version used to transfer or convey the
information request.
 
This is typically HTTP/1.1
getRunMethod(self)
Return the method name that a controller should use to process this
request.
getURI(self)
Return the unparsed path portion of the Uniform Resource Identifier
(URI) from the request.
 
If an URI is encoded this will return the encoded form including any
possible arguments.  Otherwise it is identical to the return of 
getPath()

 
Data
        __HeadURL__ = '$URL: http://pyroxide.org/svn/pyroxide/trunk/src/main/python/pyroxide/model/httprequest.py $'
__Id__ = '$Id: httprequest.py 19 2006-12-11 07:18:58Z kevin $'
__LastChangedBy__ = '$Author: kevin $'
__LastChangedDate__ = '$Date: 2006-12-10 23:18:58 -0800 (Sun, 10 Dec 2006) $'
__REPR__ = 'HTTPRequest:\n\turi=%s;\n\tmethod=%s;\n\tprotocol=%s\n\t...onfig=%s\n\tmodPythonConfig=%s\n\tmodPythonOptions=%s'
__Revision__ = '$Rev: 19 $'
__copyright__ = '(c) 2006 rootsmith Inc.'
__date__ = ' 2006-12-10 23:18:58 -0800 (Sun, 10 Dec 2006) '
__version__ = ' 19 '