summaryrefslogtreecommitdiffhomepage
path: root/CFKit/URL.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-06 09:14:11 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-06 09:14:11 +0100
commit5339d016c07bf717ee388f4feb73544087324af0 (patch)
tree94be6f67ed626091f24aee24ec3b3be03d01e4e7 /CFKit/URL.hpp
git: port from mercurial repo.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'CFKit/URL.hpp')
-rw-r--r--CFKit/URL.hpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/CFKit/URL.hpp b/CFKit/URL.hpp
new file mode 100644
index 00000000..1a1abf88
--- /dev/null
+++ b/CFKit/URL.hpp
@@ -0,0 +1,35 @@
+/*
+ * ========================================================
+ *
+ * hCore
+ * Copyright Mahrouss Logic, all rights reserved.
+ *
+ * ========================================================
+ */
+
+#ifndef _INC_URL_HPP__
+#define _INC_URL_HPP__
+
+#include <NewKit/Defines.hpp>
+#include <NewKit/String.hpp>
+
+namespace hCore
+{
+ class Url final
+ {
+ public:
+ explicit Url(StringView &strUrl);
+ ~Url();
+
+ public:
+ Ref<ErrorOr<StringView>> Location() noexcept;
+ Ref<ErrorOr<StringView>> Protocol() noexcept;
+
+ private:
+ Ref<StringView> m_urlView;
+
+ };
+
+} // namespace hCore
+
+#endif /* ifndef _INC_URL_HPP__ */ \ No newline at end of file