# werkzeug.BaseResponse.get_wsgi_response¶

BaseResponse.get_wsgi_response(environ)[source]

Returns the final WSGI response as tuple. The first item in the tuple is the application iterator, the second the status and the third the list of headers. The response returned is created specially for the given environment. For example if the request method in the WSGI environment is 'HEAD' the response will be empty and only the headers and status code will be present.

New in version 0.6.

Parameters: environ – the WSGI environment of the request. an (app_iter, status, headers) tuple.