# flask 3.1.3 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
Generate a URL to the given endpoint with the given values.

    This requires an active request or application context, and calls
    :meth:`current_app.url_for() <flask.Flask.url_for>`. See that method
    for full documentation.

    :param endpoint: The endpoint name associated with the URL to
        generate. If this starts with a ``.``, the current blueprint
        name (if any) will be used.
    :param _anchor: If given, append this as ``#anchor`` to the URL.
    :param _method: If given, generate the URL associated with this
        method for the endpoint.
    :param _scheme: If given, the URL will have this scheme if it is
        external.
    :param _external: If given, prefer the URL to be internal (False) or
        require it to be external (True). External URLs include the
        scheme and domain. When not in an active request, URLs are
        external by default.
    :param values: Values to use for the variable parts of the URL rule.
        Unknown keys are appended as query string arguments, like
        ``?a=b&c=d``.

    .. versionchanged:: 2.2
        Calls ``current_app.url_for``, allowing an app to override the
        behavior.

    .. versionchanged:: 0.10
       The ``_scheme`` parameter was added.

    .. versionchanged:: 0.9
       The ``_anchor`` and ``_method`` parameters were added.

    .. versionchanged:: 0.9
       Calls ``app.handle_url_build_error`` on build errors.
    
=== parse rest
short_description: 'Generate a URL to the given endpoint with the given values.'
long_description: |
  This requires an active request or application context, and calls
  :meth:`current_app.url_for() <flask.Flask.url_for>`. See that method
  for full documentation.
  
  .. versionchanged:: 2.2
      Calls ``current_app.url_for``, allowing an app to override the
      behavior.
  
  .. versionchanged:: 0.10
     The ``_scheme`` parameter was added.
  
  .. versionchanged:: 0.9
     The ``_anchor`` and ``_method`` parameters were added.
  
  .. versionchanged:: 0.9
     Calls ``app.handle_url_build_error`` on build errors.
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: |
    The endpoint name associated with the URL to
    generate. If this starts with a ``.``, the current blueprint
    name (if any) will be used.
  kind: param
  key: 'param'
  arg_name: 'endpoint'
  is_optional: False
- DocstringParam
  description: 'If given, append this as ``#anchor`` to the URL.'
  kind: param
  key: 'param'
  arg_name: '_anchor'
  is_optional: False
- DocstringParam
  description: |
    If given, generate the URL associated with this
    method for the endpoint.
  kind: param
  key: 'param'
  arg_name: '_method'
  is_optional: False
- DocstringParam
  description: |
    If given, the URL will have this scheme if it is
    external.
  kind: param
  key: 'param'
  arg_name: '_scheme'
  is_optional: False
- DocstringParam
  description: |
    If given, prefer the URL to be internal (False) or
    require it to be external (True). External URLs include the
    scheme and domain. When not in an active request, URLs are
    external by default.
  kind: param
  key: 'param'
  arg_name: '_external'
  is_optional: False
- DocstringParam
  description: |
    Values to use for the variable parts of the URL rule.
    Unknown keys are appended as query string arguments, like
    ``?a=b&c=d``.
  kind: param
  key: 'param'
  arg_name: 'values'
  is_optional: False
=== detect
rest
=== compose rest
Generate a URL to the given endpoint with the given values.

This requires an active request or application context, and calls
:meth:`current_app.url_for() <flask.Flask.url_for>`. See that method
for full documentation.

.. versionchanged:: 2.2
    Calls ``current_app.url_for``, allowing an app to override the
    behavior.

.. versionchanged:: 0.10
   The ``_scheme`` parameter was added.

.. versionchanged:: 0.9
   The ``_anchor`` and ``_method`` parameters were added.

.. versionchanged:: 0.9
   Calls ``app.handle_url_build_error`` on build errors.

:param endpoint: The endpoint name associated with the URL to
    generate. If this starts with a ``.``, the current blueprint
    name (if any) will be used.
:param _anchor: If given, append this as ``#anchor`` to the URL.
:param _method: If given, generate the URL associated with this
    method for the endpoint.
:param _scheme: If given, the URL will have this scheme if it is
    external.
:param _external: If given, prefer the URL to be internal (False) or
    require it to be external (True). External URLs include the
    scheme and domain. When not in an active request, URLs are
    external by default.
:param values: Values to use for the variable parts of the URL rule.
    Unknown keys are appended as query string arguments, like
    ``?a=b&c=d``.
