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.devappserver2.http_runtime.HttpRuntimeProxy Class Reference
Inheritance diagram for google.appengine.tools.devappserver2.http_runtime.HttpRuntimeProxy:
google.appengine.tools.devappserver2.instance.RuntimeProxy

Public Member Functions

def __init__
 
def handle
 
def start
 
def quit
 
- Public Member Functions inherited from google.appengine.tools.devappserver2.instance.RuntimeProxy
def handle
 
def start
 
def quit
 

Detailed Description

Manages a runtime subprocess used to handle dynamic content.

Constructor & Destructor Documentation

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.

Member Function Documentation

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: