| 65 | namespace NUrl { |
| 66 | |
| 67 | TSplitUrlToHostAndPathResult SplitUrlToHostAndPath(const TStringBuf url) { |
| 68 | TStringBuf host = GetSchemeHostAndPort(url, /*trimHttp=*/false, /*trimDefaultPort=*/false); |
| 69 | TStringBuf path = url; |
| 70 | path.SkipPrefix(host); |
| 71 | return {host, path}; |
| 72 | } |
| 73 | |
| 74 | bool HasLowerHost(const TStringBuf url) { |
| 75 | for (size_t n = 0; n < url.length(); ++n) { |
no test coverage detected