summaryrefslogtreecommitdiffhomepage
path: root/Private/CFKit/URL.hpp
blob: 046830ba7c90d30ce6e85774141c39687e043738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 *	========================================================
 *
 *	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__ */