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