![]() |
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 | __init__ |
def | handle_authorization |
![]() | |
def | __init__ |
def | match |
def | handle_authorization |
def | handle |
Servers content for the "static_files" handler. For example: handlers: - url: /css static_dir: stylesheets
def google.appengine.tools.devappserver2.static_files_handler.StaticDirHandler.__init__ | ( | self, | |
root_path, | |||
url_map | |||
) |
Initializer for StaticDirHandler. Args: root_path: A string containing the full path of the directory containing the application's app.yaml file. url_map: An appinfo.URLMap instance containing the configuration for this handler.
def google.appengine.tools.devappserver2.static_files_handler.StaticDirHandler.handle | ( | self, | |
match, | |||
environ, | |||
start_response | |||
) |
Serves the file content matching the request. Args: match: The re.MatchObject containing the result of matching the URL against this handler's URL pattern. 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.