![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | handle |
![]() | |
def | __init__ |
def | match |
def | handle_authorization |
def | handle |
Simple handler that matches a regex and runs a WSGI application. WSGIHandler does not perform authorization; the authorization check always succeeds.
def google.appengine.tools.devappserver2.wsgi_handler.WSGIHandler.__init__ | ( | self, | |
wsgi_app, | |||
url_pattern | |||
) |
Initializer for WSGIHandler. Args: wsgi_app: A WSGI application function as defined in PEP-333. url_pattern: A regular expression string containing the pattern for URLs handled by this handler. Unlike user-provided patterns in app.yaml, the pattern is not required to match the whole URL, only the start. (End the pattern with '$' to explicitly match the whole string.) Raises: re.error: url_pattern was not a valid regular expression.
def google.appengine.tools.devappserver2.wsgi_handler.WSGIHandler.handle | ( | self, | |
unused_match, | |||
environ, | |||
start_response | |||
) |
Serves the content associated with this handler. Args: unused_match: Unused. environ: An environ dict for the current request as defined in PEP-333. start_response: A function with semantics defined in PEP-333. Returns: An iterable over strings containing the body of the HTTP response.