Skip to content
Myr

Merge pull request #571 from plaes/doc-improvements

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

Doc improvements for url_for()

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 50dc240, e3b3e05 · Browse files · 1 file+4 added−2 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+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:flask/helpers.py+4 added-2 removed
111 unmodified lines
112 yield request.args['name']113 yield '!'114 return Response(generate())115116 Alternatively it can also be used around a specific generator:116 Alternatively it can also be used around a specific generator::117118 from flask import stream_with_context, request, Response119120 @app.route('/stream')
183 unmodified lines
304 :exc:`~werkzeug.routing.BuildError`.305306 :param endpoint: the endpoint of the URL (name of the function)307 :param values: the variable arguments of the URL rule308 :param _external: if set to `True`, an absolute URL is generated.308 :param _external: if set to `True`, an absolute URL is generated. Server309 address can be changed via `SERVER_NAME` configuration variable which310 defaults to `localhost`.311 :param _anchor: if provided this is added as anchor to the URL.312 :param _method: if provided this explicitly specifies an HTTP method.313 """314 appctx = _app_ctx_stack.top
581 unmodified lines