aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/url/url.h
diff options
context:
space:
mode:
authormanavrion <manavrion@yandex-team.ru>2022-02-10 16:49:16 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:16 +0300
commit29d0b2eeae154d04156e0698067c0c21a97ea61d (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/string_utils/url/url.h
parent109de9f4c31b6caaa736ce29a61fce05851e7c02 (diff)
downloadydb-29d0b2eeae154d04156e0698067c0c21a97ea61d.tar.gz
Restoring authorship annotation for <manavrion@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/string_utils/url/url.h')
-rw-r--r--library/cpp/string_utils/url/url.h44
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 ab8924cdc2..84137ccc57 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