Base-class for handling HTTP requests.
def google.appengine.tools.old_dev_appserver.URLDispatcher.Dispatch |
( |
|
self, |
|
|
|
request, |
|
|
|
outfile, |
|
|
|
base_env_dict = None |
|
) |
| |
Dispatch and handle an HTTP request.
base_env_dict should contain at least these CGI variables:
REQUEST_METHOD, REMOTE_ADDR, SERVER_SOFTWARE, SERVER_NAME,
SERVER_PROTOCOL, SERVER_PORT
Args:
request: AppServerRequest instance.
outfile: File-like object where output data should be written.
base_env_dict: Dictionary of CGI environment parameters if available.
Defaults to None.
Returns:
None if request handling is complete.
A new AppServerRequest instance if internal redirect is required.
def google.appengine.tools.old_dev_appserver.URLDispatcher.EndRedirect |
( |
|
self, |
|
|
|
dispatched_output, |
|
|
|
original_output |
|
) |
| |
Process the end of an internal redirect.
This method is called after all subsequent dispatch requests have finished.
By default the output from the dispatched process is copied to the original.
This will not be called on dispatchers that do not return an internal
redirect.
Args:
dispatched_output: StringIO buffer containing the results from the
dispatched
original_output: The original output file.
Returns:
None if request handling is complete.
A new AppServerRequest instance if internal redirect is required.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/old_dev_appserver.py