MCPcopy
hub / github.com/pallets/werkzeug / _get_wsgi_string

Method _get_wsgi_string

src/werkzeug/routing/map.py:341–345  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

339 subdomain = ".".join(filter(None, cur_server_name[:offset]))
340
341 def _get_wsgi_string(name: str) -> str | None:
342 val = env.get(name)
343 if val is not None:
344 return _wsgi_decoding_dance(val)
345 return None
346
347 script_name = _get_wsgi_string("SCRIPT_NAME")
348 path_info = _get_wsgi_string("PATH_INFO")

Callers

nothing calls this directly

Calls 2

_wsgi_decoding_danceFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected