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

Function uri

tests/treq.py:24–33  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

22
23
24def uri(data):
25 ret = {"raw": data}
26 parts = split_request_uri(data)
27 ret["scheme"] = parts.scheme or ''
28 ret["host"] = parts.netloc.rsplit(":", 1)[0] or None
29 ret["port"] = parts.port or 80
30 ret["path"] = parts.path or ''
31 ret["query"] = parts.query or ''
32 ret["fragment"] = parts.fragment or ''
33 return ret
34
35
36def load_py(fname, http_parser='python'):

Callers 15

020.pyFile · 0.50
030.pyFile · 0.50
040_compat.pyFile · 0.50
029.pyFile · 0.50
002.pyFile · 0.50
006.pyFile · 0.50
022.pyFile · 0.50
025_line.pyFile · 0.50
100.pyFile · 0.50
018.pyFile · 0.50

Calls 1

split_request_uriFunction · 0.90

Tested by

no test coverage detected