# flask 3.1.3 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
The actual WSGI application. This is not implemented in
        :meth:`__call__` so that middlewares can be applied without
        losing a reference to the app object. Instead of doing this::

            app = MyMiddleware(app)

        It's a better idea to do this instead::

            app.wsgi_app = MyMiddleware(app.wsgi_app)

        Then you still have the original application object around and
        can continue to call methods on it.

        .. versionchanged:: 0.7
            Teardown events for the request and app contexts are called
            even if an unhandled error occurs. Other events may not be
            called depending on when an error occurs during dispatch.
            See :ref:`callbacks-and-errors`.

        :param environ: A WSGI environment.
        :param start_response: A callable accepting a status code,
            a list of headers, and an optional exception context to
            start the response.
        
=== parse rest
short_description: |
  The actual WSGI application. This is not implemented in
  :meth:`__call__` so that middlewares can be applied without
  losing a reference to the app object. Instead of doing this::
long_description: |
      app = MyMiddleware(app)
  
  It's a better idea to do this instead::
  
      app.wsgi_app = MyMiddleware(app.wsgi_app)
  
  Then you still have the original application object around and
  can continue to call methods on it.
  
  .. versionchanged:: 0.7
      Teardown events for the request and app contexts are called
      even if an unhandled error occurs. Other events may not be
      called depending on when an error occurs during dispatch.
      See :ref:`callbacks-and-errors`.
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: 'A WSGI environment.'
  kind: param
  key: 'param'
  arg_name: 'environ'
  is_optional: False
- DocstringParam
  description: |
    A callable accepting a status code,
    a list of headers, and an optional exception context to
    start the response.
  kind: param
  key: 'param'
  arg_name: 'start_response'
  is_optional: False
=== detect
rest
=== compose rest
The actual WSGI application. This is not implemented in
:meth:`__call__` so that middlewares can be applied without
losing a reference to the app object. Instead of doing this::

    app = MyMiddleware(app)

It's a better idea to do this instead::

    app.wsgi_app = MyMiddleware(app.wsgi_app)

Then you still have the original application object around and
can continue to call methods on it.

.. versionchanged:: 0.7
    Teardown events for the request and app contexts are called
    even if an unhandled error occurs. Other events may not be
    called depending on when an error occurs during dispatch.
    See :ref:`callbacks-and-errors`.

:param environ: A WSGI environment.
:param start_response: A callable accepting a status code,
    a list of headers, and an optional exception context to
    start the response.
