Skip to content
Myr

Merge pull request #1158 from untitaker/protocol-relative

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

Document building protocol-relative URLs

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents a94e767, 7183aef · Browse files · 1 file+2 added−1 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:flask/helpers.py+2 added-1 removed
249 unmodified lines
250 :param _scheme: a string specifying the desired URL scheme. The `_external`251 parameter must be set to `True` or a `ValueError` is raised. The default252 behavior uses the same scheme as the current request, or253 ``PREFERRED_URL_SCHEME`` from the :ref:`app configuration <config>` if no254 request context is available.254 request context is available. As of Werkzeug 0.10, this also can be set255 to an empty string to build protocol-relative URLs.256 :param _anchor: if provided this is added as anchor to the URL.257 :param _method: if provided this explicitly specifies an HTTP method.258 """259 appctx = _app_ctx_stack.top
644 unmodified lines