![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | get |
def | ServeFromZipFile |
def | SetCachingHeaders |
![]() | |
def | initialize |
def | get |
def | post |
def | head |
def | options |
def | put |
def | delete |
def | trace |
def | error |
def | redirect |
def | handle_exception |
def | new_factory |
def | get_url |
Static Public Attributes | |
dictionary | zipfile_cache = {} |
int | MAX_AGE = 600 |
PUBLIC = True | |
Additional Inherited Members | |
![]() | |
request | |
response | |
Request handler serving static files from zipfiles.
def google.appengine.ext.zipserve.ZipHandler.get | ( | self, | |
prefix, | |||
name | |||
) |
GET request handler. Typically the arguments are passed from the matching groups in the URL pattern passed to WSGIApplication(). Args: prefix: The zipfilename without the .zip suffix. name: The name within the zipfile.
def google.appengine.ext.zipserve.ZipHandler.ServeFromZipFile | ( | self, | |
zipfilename, | |||
name | |||
) |
Helper for the GET request handler. This serves the contents of file 'name' from zipfile 'zipfilename', logging a message and returning a 404 response if either the zipfile cannot be opened or the named file cannot be read from it. Args: zipfilename: The name of the zipfile. name: The name within the zipfile.
def google.appengine.ext.zipserve.ZipHandler.SetCachingHeaders | ( | self | ) |
Helper to set the caching headers. Override this to customize the headers beyond setting MAX_AGE.