Package gluon :: Module http
[hide private]
[frames] | no frames]

Module http

source code

| This file is part of the web2py Web Framework | Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> | License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)

HTTP statuses helpers --------------------------------------------

Classes [hide private]
  HTTP
Raises an HTTP response
Functions [hide private]
 
redirect(location='', how=303, client_side=False)
Raises a redirect (303)
source code
Variables [hide private]
  defined_status = {200: 'OK', 201: 'CREATED', 202: 'ACCEPTED', ...
  regex_status = re.compile(r'^\d{3} [0-9A-Z ]+$')
  __package__ = 'gluon'
Function Details [hide private]

redirect(location='', how=303, client_side=False)

source code 
Raises a redirect (303)

Args:
    location: the url where to redirect
    how: what HTTP status code to use when redirecting
    client_side: if set to True, it triggers a reload of the entire page
      when the fragment has been loaded as a component


Variables Details [hide private]

defined_status

Value:
{200: 'OK',
 201: 'CREATED',
 202: 'ACCEPTED',
 203: 'NON-AUTHORITATIVE INFORMATION',
 204: 'NO CONTENT',
 205: 'RESET CONTENT',
 206: 'PARTIAL CONTENT',
 301: 'MOVED PERMANENTLY',
...