4 #ifndef DMLITE_CPP_UTILS_URLS_H
5 #define DMLITE_CPP_UTILS_URLS_H
22 explicit
Url(const std::
string& url) throw ();
26 bool operator == (const
Url&) const;
27 bool operator != (const
Url&) const;
28 bool operator < (const
Url&) const;
29 bool operator > (const
Url&) const;
31 Url & operator = (const
Url & _u);
42 static std::vector<std::
string>
splitPath(const std::
string&
path) throw ();
45 static std::
string joinPath(const std::vector<std::
string>& components) throw();
48 static std::
string normalizePath(const std::
string&
path, const
bool add_trailing_slash = true) throw ();
53 #endif // DMLITE_CPP_UTILS_URLS_H
unsigned port
Definition: urls.h:17
std::string path
Definition: urls.h:18
static std::string joinPath(const std::vector< std::string > &components)
Build a path from a list of components.
void queryFromString(const std::string &str)
std::string queryToString(void) const
std::string toString(void) const
static std::vector< std::string > splitPath(const std::string &path)
Extensible types (hold metadata).
std::string domain
Definition: urls.h:16
Extensible query
Definition: urls.h:19
Helpful typedef for KeyValue containers.
Definition: extensible.h:20
static std::string normalizePath(const std::string &path, const bool add_trailing_slash=true)
Remove multiple slashes.
std::string scheme
Definition: urls.h:15