Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.compat.wsgi_to_bytes

wsgidav.compat.wsgi_to_bytes(s)[source]

Convert a native string to a WSGI / HTTP compatible byte string.