App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.tools.old_dev_appserver.URLDispatcher Class Reference
Inheritance diagram for google.appengine.tools.old_dev_appserver.URLDispatcher:
google.appengine.tools.old_dev_appserver.CGIDispatcher google.appengine.tools.old_dev_appserver.FileDispatcher google.appengine.tools.old_dev_appserver.MatcherDispatcher google.appengine.tools.old_dev_appserver.LocalCGIDispatcher

Public Member Functions

def Dispatch
 
def EndRedirect
 

Detailed Description

Base-class for handling HTTP requests.

Member Function Documentation

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: