diff options
author | alexromanov <alexromanov@yandex-team.com> | 2022-12-15 15:16:46 +0300 |
---|---|---|
committer | alexromanov <alexromanov@yandex-team.com> | 2022-12-15 15:16:46 +0300 |
commit | fa3668fcff4c1ff0fd81e75a84cb1b0c8cb9f856 (patch) | |
tree | 25dbcd352b04506a6b80c5156a872095439a0175 /library/cpp/string_utils/url/url.h | |
parent | 56b9fdade84190c6f3f457ff268dea573f58b0d8 (diff) | |
download | ydb-fa3668fcff4c1ff0fd81e75a84cb1b0c8cb9f856.tar.gz |
Support non-http scheme in Url::GetSchemeHostPort and Url::GetSchemeHost
Diffstat (limited to 'library/cpp/string_utils/url/url.h')
-rw-r--r-- | library/cpp/string_utils/url/url.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/string_utils/url/url.h b/library/cpp/string_utils/url/url.h index 84137ccc57..68fa23d64c 100644 --- a/library/cpp/string_utils/url/url.h +++ b/library/cpp/string_utils/url/url.h @@ -70,6 +70,9 @@ Y_PURE_FUNCTION TStringBuf GetHostAndPort(const TStringBuf url) noexcept; Y_PURE_FUNCTION +TStringBuf GetSchemeHost(const TStringBuf url, bool trimHttp = true) noexcept; + +Y_PURE_FUNCTION TStringBuf GetSchemeHostAndPort(const TStringBuf url, bool trimHttp = true, bool trimDefaultPort = true) noexcept; /** |