/* ------------------------------------------- Copyright Zeta Electronics Corporation ------------------------------------------- */ #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_ */