MCPcopy Create free account
hub / github.com/catboost/catboost / GetOnlyHost

Function GetOnlyHost

library/cpp/string_utils/url/url.cpp:291–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291TStringBuf GetOnlyHost(const TStringBuf url Y_LIFETIME_BOUND) noexcept {
292 return GetHost(CutSchemePrefix(url));
293}
294
295TStringBuf GetPathAndQuery(const TStringBuf url Y_LIFETIME_BOUND, bool trimFragment) noexcept {
296 const size_t off = url.find('/', GetHttpPrefixSize(url));

Callers

nothing calls this directly

Calls 2

GetHostFunction · 0.85
CutSchemePrefixFunction · 0.85

Tested by

no test coverage detected