![]() |
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 | get |
![]() | |
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 |
Public Attributes | |
path | |
permanent | |
![]() | |
request | |
response | |
Simple redirection handler. Easily configure URLs to redirect to alternate targets. For example, to configure a web application so that the root URL is always redirected to the /home path, do: application = webapp.WSGIApplication( [('/', webapp.RedirectHandler.new_factory('/home', permanent=True)), ('/home', HomeHandler), ], debug=True) Handler also useful for setting up obsolete URLs to redirect to new paths.
def google.appengine.ext.webapp._webapp25.RedirectHandler.__init__ | ( | self, | |
path, | |||
permanent = False |
|||
) |
Constructor. Do not use directly. Configure using new_factory method. Args: path: Path to redirect to. permanent: if true, we use a 301 redirect instead of a 302 redirect.