PyDocs

Internet Protocols and Support

wsgiref.util

Miscellaneous WSGI-related Utilities
Symbols in wsgiref.util

a

application_uri
Return the application's base URI (no PATH_INFO or QUERY_STRING)

f

FileWrapper
Wrapper to convert file-like objects to iterables

g

guess_scheme
Return a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'

i

is_hop_by_hop
Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header

r

request_uri
Return the full request URI, optionally including the query string

s

setup_testing_defaults
Update 'environ' with trivial defaults for testing purposes
shift_path_info
Shift a name from PATH_INFO to SCRIPT_NAME, returning it