werkzeug.Headers.to_wsgi_list

Headers.to_wsgi_list()[source]

Convert the headers into a list suitable for WSGI.

The values are byte strings in Python 2 converted to latin1 and unicode strings in Python 3 for the WSGI server to encode.

Returns:list