MCPcopy
hub / github.com/benoitc/gunicorn / uri

Function uri

tests/treq_asgi.py:64–73  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

62
63
64def uri(data):
65 ret = {"raw": data}
66 parts = split_request_uri(data)
67 ret["scheme"] = parts.scheme or ''
68 ret["host"] = parts.netloc.rsplit(":", 1)[0] or None
69 ret["port"] = parts.port or 80
70 ret["path"] = parts.path or ''
71 ret["query"] = parts.query or ''
72 ret["fragment"] = parts.fragment or ''
73 return ret
74
75
76def load_py(fname, http_parser='python'):

Callers

nothing calls this directly

Calls 1

split_request_uriFunction · 0.90

Tested by

no test coverage detected