Manages a runtime subprocess used to handle dynamic content.
def google.appengine.tools.devappserver2.http_runtime.HttpRuntimeProxy.__init__ |
( |
|
self, |
|
|
|
args, |
|
|
|
runtime_config_getter, |
|
|
|
module_configuration, |
|
|
|
env = None , |
|
|
|
start_process_flavor = START_PROCESS |
|
) |
| |
Initializer for HttpRuntimeProxy.
Args:
args: Arguments to use to start the runtime subprocess.
runtime_config_getter: A function that can be called without arguments
and returns the runtime_config_pb2.Config containing the configuration
for the runtime.
module_configuration: An application_configuration.ModuleConfiguration
instance respresenting the configuration of the module that owns the
runtime.
env: A dict of environment variables to pass to the runtime subprocess.
start_process_flavor: Which version of start process to start your
runtime process. SUpported flavors are START_PROCESS and
START_PROCESS_FILE.
Raises:
ValueError: An unknown value for start_process_flavor was used.
def google.appengine.tools.devappserver2.http_runtime.HttpRuntimeProxy.handle |
( |
|
self, |
|
|
|
environ, |
|
|
|
start_response, |
|
|
|
url_map, |
|
|
|
match, |
|
|
|
request_id, |
|
|
|
request_type |
|
) |
| |
Serves this request by forwarding it to the runtime process.
Args:
environ: An environ dict for the request as defined in PEP-333.
start_response: A function with semantics defined in PEP-333.
url_map: An appinfo.URLMap instance containing the configuration for the
handler matching this request.
match: A re.MatchObject containing the result of the matched URL pattern.
request_id: A unique string id associated with the request.
request_type: The type of the request. See instance.*_REQUEST module
constants.
Yields:
A sequence of strings containing the body of the HTTP response.
def google.appengine.tools.devappserver2.http_runtime.HttpRuntimeProxy.quit |
( |
|
self | ) |
|
Causes the runtime process to exit.
def google.appengine.tools.devappserver2.http_runtime.HttpRuntimeProxy.start |
( |
|
self | ) |
|
Starts the runtime process and waits until it is ready to serve.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/devappserver2/http_runtime.py