werkzeug.BaseResponse.get_app_iter

BaseResponse.get_app_iter(environ)[source]

Returns the application iterator for the given environ. Depending on the request method and the current status code the return value might be an empty response rather than the one from the response.

If the request method is HEAD or the status code is in a range where the HTTP specification requires an empty response, an empty iterable is returned.

New in version 0.6.

Parameters:environ – the WSGI environment of the request.
Returns:a response iterable.