summaryrefslogtreecommitdiffhomepage
path: root/CFKit/URL.hpp
blob: 1a1abf88a713938bdff66a97e4876669520ab003 (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
33
34
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__ */