(data)
| 62 | |
| 63 | |
| 64 | def 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 | |
| 76 | def load_py(fname, http_parser='python'): |
nothing calls this directly
no test coverage detected