flask_velox.views.http

Module provides views for issuing HTTP status codes using Flask MethodView.

class flask_velox.views.http.RedirectView

Bases: flask_velox.mixins.http.RedirectMixin

View for raising a HTTP 3XX Response. By default this View will raise a HTTP 302 however this can be overridden by defining a code attribute.

Example

1
2
3
4
from flask.ext.velox.views.http import RedirectView
class MyView(RedirectMixin):
    rule = 'some.url.rule'
    code = 301

http://thisissoon.com

Related Topics

This Page