A dev_appserver Dispatcher implementation.
def google.appengine.tools.old_dev_appserver.DevAppserverDispatcher.add_async_request |
( |
|
self, |
|
|
|
method, |
|
|
|
relative_url, |
|
|
|
headers, |
|
|
|
body, |
|
|
|
source_ip, |
|
|
|
server_name = None , |
|
|
|
version = None , |
|
|
|
instance_id = None |
|
) |
| |
Dispatch an HTTP request asynchronously.
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.
def google.appengine.tools.old_dev_appserver.DevAppserverDispatcher.add_event |
( |
|
self, |
|
|
|
runnable, |
|
|
|
eta, |
|
|
|
service = None , |
|
|
|
event_id = None |
|
) |
| |
Add a callable to be run at the specified time.
Args:
runnable: A callable object to call at the specified time.
eta: An int containing the time to run the event, in seconds since the
epoch.
service: A str containing the name of the service that owns this event.
This should be set if event_id is set.
event_id: A str containing the id of the event. If set, this can be passed
to update_event to change the time at which the event should run.
def google.appengine.tools.old_dev_appserver.DevAppserverDispatcher.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.
def google.appengine.tools.old_dev_appserver.DevAppserverDispatcher.update_event |
( |
|
self, |
|
|
|
eta, |
|
|
|
service, |
|
|
|
event_id |
|
) |
| |
Update the eta of a scheduled event.
Args:
eta: An int containing the time to run the event, in seconds since the
epoch.
service: A str containing the name of the service that owns this event.
event_id: A str containing the id of the event to update.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/old_dev_appserver.py