forked from orbit-oss/flask
parent
1d55b8983e
commit
b49074eb6b
1 changed files with 4 additions and 1 deletions
|
|
@ -248,7 +248,10 @@ def url_for(endpoint, **values):
|
||||||
address can be changed via `SERVER_NAME` configuration variable which
|
address can be changed via `SERVER_NAME` configuration variable which
|
||||||
defaults to `localhost`.
|
defaults to `localhost`.
|
||||||
:param _scheme: a string specifying the desired URL scheme. The `_external`
|
:param _scheme: a string specifying the desired URL scheme. The `_external`
|
||||||
parameter must be set to `True` or a `ValueError` is raised.
|
parameter must be set to `True` or a `ValueError` is raised. The default
|
||||||
|
behavior uses the same scheme as the current request, or
|
||||||
|
``PREFERRED_URL_SCHEME`` from the :ref:`app configuration <config>` if no
|
||||||
|
request context is available.
|
||||||
:param _anchor: if provided this is added as anchor to the URL.
|
:param _anchor: if provided this is added as anchor to the URL.
|
||||||
:param _method: if provided this explicitly specifies an HTTP method.
|
:param _method: if provided this explicitly specifies an HTTP method.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue