diff options
author | manavrion <[email protected]> | 2022-02-10 16:49:16 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:16 +0300 |
commit | 109de9f4c31b6caaa736ce29a61fce05851e7c02 (patch) | |
tree | e509d6d1d860cb27318781b452060fd9ce9b74a1 /library/cpp/string_utils/url/url.h | |
parent | 5ba59e58ca0ed3be83efee8a12c92725dfc5f051 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/string_utils/url/url.h')
-rw-r--r-- | library/cpp/string_utils/url/url.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/string_utils/url/url.h b/library/cpp/string_utils/url/url.h index 84137ccc57d..ab8924cdc20 100644 --- a/library/cpp/string_utils/url/url.h +++ b/library/cpp/string_utils/url/url.h @@ -1,28 +1,28 @@ #pragma once #include <util/generic/fwd.h> -#include <util/generic/strbuf.h> - -namespace NUrl { - - /** - * Splits URL to host and path - * Example: - * auto [host, path] = SplitUrlToHostAndPath(url); - * - * @param[in] url any URL - * @param[out] <host, path> parsed host and path - */ - struct TSplitUrlToHostAndPathResult { - TStringBuf host; - TStringBuf path; - }; - - Y_PURE_FUNCTION - TSplitUrlToHostAndPathResult SplitUrlToHostAndPath(const TStringBuf url); - -} // namespace NUrl - +#include <util/generic/strbuf.h> + +namespace NUrl { + + /** + * Splits URL to host and path + * Example: + * auto [host, path] = SplitUrlToHostAndPath(url); + * + * @param[in] url any URL + * @param[out] <host, path> parsed host and path + */ + struct TSplitUrlToHostAndPathResult { + TStringBuf host; + TStringBuf path; + }; + + Y_PURE_FUNCTION + TSplitUrlToHostAndPathResult SplitUrlToHostAndPath(const TStringBuf url); + +} // namespace NUrl + Y_PURE_FUNCTION size_t GetHttpPrefixSize(const char* url, bool ignorehttps = false) noexcept; Y_PURE_FUNCTION |