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.static_files_handler.StaticFilesHandler Class Reference
Inheritance diagram for google.appengine.tools.devappserver2.static_files_handler.StaticFilesHandler:
google.appengine.tools.devappserver2.static_files_handler.StaticContentHandler google.appengine.tools.devappserver2.url_handler.UserConfiguredURLHandler google.appengine.tools.devappserver2.url_handler.URLHandler

Public Member Functions

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

Detailed Description

Servers content for the "static_files" handler.

For example:
  handlers:
  - url: /(.*)/(.*)
    static_files: \1/\2
    upload: (.*)/(.*)

Constructor & Destructor Documentation

def google.appengine.tools.devappserver2.static_files_handler.StaticFilesHandler.__init__ (   self,
  root_path,
  url_map 
)
Initializer for StaticFilesHandler.

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.

Member Function Documentation

def google.appengine.tools.devappserver2.static_files_handler.StaticFilesHandler.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.

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