40 explicit Url(
const std::string &url);
49 void setUrl(
const std::string &url);
51 void setIdScheme(IdScheme idScheme);
52 void setHost(
const std::string &host);
53 void setPort(uint16_t port);
54 void setPath(
const std::string &path);
59 std::string toString()
const;
61 IdScheme getIdScheme()
const;
62 const std::string& getHost()
const;
63 uint16_t getPort()
const;
64 const std::string& getPath()
const;
67 static std::string idSchemeToString(IdScheme idScheme);
68 static IdScheme idSchemeFromString(
const std::string &idScheme);
71 Url& operator=(
const Url &other);
72 Url& operator=(
Url &&other)
noexcept;
75 TEASE_EXPORT
friend bool operator==(
const Url &left,
const Url &right);
76 TEASE_EXPORT
friend bool operator!=(
const Url &left,
const Url &right);
80 std::unique_ptr<Impl> d_ptr;