From af8a516fc22865abd80d6e26f1541fa3d6bebfdc Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 9 May 2024 00:42:44 +0200 Subject: MHR-23: :boom:, refactors. - Move NewBoot to /Boot, thus making Kernel directory only containing the kernel. Signed-off-by: Amlal El Mahrouss --- Kernel/CFKit/URL.hpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Kernel/CFKit/URL.hpp (limited to 'Kernel/CFKit/URL.hpp') diff --git a/Kernel/CFKit/URL.hpp b/Kernel/CFKit/URL.hpp new file mode 100644 index 00000000..93a078a0 --- /dev/null +++ b/Kernel/CFKit/URL.hpp @@ -0,0 +1,33 @@ +/* ------------------------------------------- + + Copyright SoftwareLabs + +------------------------------------------- */ + +#ifndef _INC_URL_HPP_ +#define _INC_URL_HPP_ + +#include +#include + +namespace NewOS +{ + class URL final + { + public: + explicit URL(StringView& strUrl); + ~URL(); + + public: + Ref> Location() noexcept; + Ref> Protocol() noexcept; + + private: + Ref fUrlView; + }; + + ErrorOr url_extract_location(const char* url); + ErrorOr url_extract_protocol(const char* url); +} // namespace NewOS + +#endif /* ifndef _INC_URL_HPP_ */ -- cgit v1.2.3