summaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/url/url.h
diff options
context:
space:
mode:
authormanavrion <[email protected]>2022-02-10 16:49:16 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:16 +0300
commit109de9f4c31b6caaa736ce29a61fce05851e7c02 (patch)
treee509d6d1d860cb27318781b452060fd9ce9b74a1 /library/cpp/string_utils/url/url.h
parent5ba59e58ca0ed3be83efee8a12c92725dfc5f051 (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.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 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