werkzeug.Response.from_app¶
-
Response.
from_app
(app, environ, buffered=False)¶ Create a new response object from an application output. This works best if you pass it an application that returns a generator all the time. Sometimes applications may use the write() callable returned by the start_response function. This tries to resolve such edge cases automatically. But if you don’t get the expected output you should set buffered to True which enforces buffering.
Parameters: - app – the WSGI application to execute.
- environ – the WSGI environment to execute against.
- buffered – set to True to enforce buffering.
Returns: a response object.