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.api_server.ApiServerDispatcher Class Reference
Inheritance diagram for google.appengine.tools.api_server.ApiServerDispatcher:

Public Member Functions

def add_request
 

Detailed Description

An api_server Dispatcher implementation.

Member Function Documentation

def google.appengine.tools.api_server.ApiServerDispatcher.add_request (   self,
  method,
  relative_url,
  headers,
  body,
  source_ip,
  server_name = None,
  version = None,
  instance_id = None 
)
Process an HTTP request.

Args:
  method: A str containing the HTTP method of the request.
  relative_url: A str containing path and query string of the request.
  headers: A list of (key, value) tuples where key and value are both str.
  body: A str containing the request body.
  source_ip: The source ip address for the request.
  server_name: An optional str containing the server name to service this
  request. If unset, the request will be dispatched to the default
  server.
  version: An optional str containing the version to service this request.
  If unset, the request will be dispatched to the default version.
  instance_id: An optional str containing the instance_id of the instance to
  service this request. If unset, the request will be dispatched to
  according to the load-balancing for the server and version.

Returns:
  A request_info.ResponseTuple containing the response information for the
  HTTP request.

The documentation for this class was generated from the following file: