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.wsgi_handler.WSGIHandler Class Reference
Inheritance diagram for google.appengine.tools.devappserver2.wsgi_handler.WSGIHandler:
google.appengine.tools.devappserver2.url_handler.URLHandler

Public Member Functions

def __init__
 
def handle
 
- Public Member Functions inherited from google.appengine.tools.devappserver2.url_handler.URLHandler
def __init__
 
def match
 
def handle_authorization
 
def handle
 

Detailed Description

Simple handler that matches a regex and runs a WSGI application.

WSGIHandler does not perform authorization; the authorization check always
succeeds.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

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