MOAI Http Module

class moai.http.cgi.CGIRequest(url, **kw)

This is a request object that can be used in a CGI environment. Note that this is not to be used in production scenarios, it’s main use is documentation, and as a backend used in the unittests This class implements IServerRequest interface.

query_dict()
Return a dictionary with QueryString values of the request
redirect(url)
Redirect to this url
send_file(path, mimetype)
Send the file located at ‘path’ back to the user
send_status(code, msg='', mimetype='text/plain')
url()
write(data, mimetype)
Write data back to the client
class moai.http.cherry.CherryPyRequest(url, **kw)

This is a request object that can be used in a CherryPy environment. It implements IServerRequest interface.

query_dict()
Return a dictionary with QueryString values of the request
redirect(url)
Redirect to this url
send_file(path, mimetype)
Send the file located at ‘path’ back to the user
send_status(code, msg='', mimetype='text/plain')
url()
write(data, mimetype)
Write data back to the client
"Moai at Tongariki", photo: Vera & Jean-Christophe. Creative Commons License

Previous topic

MOAI Core Module

Next topic

MOAI Metadata Module

This Page

Quick search