# flask 3.1.3 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
Called after the request is dispatched and the response is
        returned, right before the request context is popped.

        This calls all functions decorated with
        :meth:`teardown_request`, and :meth:`Blueprint.teardown_request`
        if a blueprint handled the request. Finally, the
        :data:`request_tearing_down` signal is sent.

        This is called by
        :meth:`RequestContext.pop() <flask.ctx.RequestContext.pop>`,
        which may be delayed during testing to maintain access to
        resources.

        :param exc: An unhandled exception raised while dispatching the
            request. Detected from the current exception information if
            not passed. Passed to each teardown function.

        .. versionchanged:: 0.9
            Added the ``exc`` argument.
        
=== parse rest
short_description: |
  Called after the request is dispatched and the response is
  returned, right before the request context is popped.
long_description: |
  This calls all functions decorated with
  :meth:`teardown_request`, and :meth:`Blueprint.teardown_request`
  if a blueprint handled the request. Finally, the
  :data:`request_tearing_down` signal is sent.
  
  This is called by
  :meth:`RequestContext.pop() <flask.ctx.RequestContext.pop>`,
  which may be delayed during testing to maintain access to
  resources.
  
  .. versionchanged:: 0.9
      Added the ``exc`` argument.
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: |
    An unhandled exception raised while dispatching the
    request. Detected from the current exception information if
    not passed. Passed to each teardown function.
  kind: param
  key: 'param'
  arg_name: 'exc'
  is_optional: False
=== detect
rest
=== compose rest
Called after the request is dispatched and the response is
returned, right before the request context is popped.

This calls all functions decorated with
:meth:`teardown_request`, and :meth:`Blueprint.teardown_request`
if a blueprint handled the request. Finally, the
:data:`request_tearing_down` signal is sent.

This is called by
:meth:`RequestContext.pop() <flask.ctx.RequestContext.pop>`,
which may be delayed during testing to maintain access to
resources.

.. versionchanged:: 0.9
    Added the ``exc`` argument.

:param exc: An unhandled exception raised while dispatching the
    request. Detected from the current exception information if
    not passed. Passed to each teardown function.
