Skip to content
Myr

Updated docstring on make_response

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 9070c5c · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:flask/helpers.py+7 added
143 unmodified lines
144 code::145146 response = make_response(render_template('not_found.html'), 404)147148 The other use case of this function is to force the return value of a149 view function into a response which is helpful with view150 decorators::151152 response = make_response(view_function())153 response.headers['X-Parachutes'] = 'parachutes are cool'154155 Internally this function does the following things:156157 - if no arguments are passed, it creates a new response argument158 - if one argument is passed, :meth:`flask.Flask.make_response`
488 unmodified lines