#include <urls.h>
|
static std::vector< std::string > | splitPath (const std::string &path) throw () |
|
static std::string | joinPath (const std::vector< std::string > &components) throw () |
| Build a path from a list of components. More...
|
|
static std::string | normalizePath (const std::string &path, const bool add_trailing_slash=true) throw () |
| Remove multiple slashes. More...
|
|
◆ Url() [1/3]
dmlite::Url::Url |
( |
| ) |
|
throw | ( | |
| ) | | |
◆ Url() [2/3]
dmlite::Url::Url |
( |
const std::string & |
url | ) |
|
throw | ( | |
| ) | | |
|
explicit |
◆ Url() [3/3]
dmlite::Url::Url |
( |
const Url & |
_u | ) |
|
◆ joinPath()
static std::string dmlite::Url::joinPath |
( |
const std::vector< std::string > & |
components | ) |
|
throw | ( | |
| ) | | |
|
static |
Build a path from a list of components.
◆ normalizePath()
static std::string dmlite::Url::normalizePath |
( |
const std::string & |
path, |
|
|
const bool |
add_trailing_slash = true |
|
) |
| |
throw | ( | |
| ) | | |
|
static |
◆ operator!=()
bool dmlite::Url::operator!= |
( |
const Url & |
| ) |
const |
◆ operator<()
bool dmlite::Url::operator< |
( |
const Url & |
| ) |
const |
◆ operator=()
Url& dmlite::Url::operator= |
( |
const Url & |
_u | ) |
|
◆ operator==()
bool dmlite::Url::operator== |
( |
const Url & |
| ) |
const |
◆ operator>()
bool dmlite::Url::operator> |
( |
const Url & |
| ) |
const |
◆ queryFromString()
void dmlite::Url::queryFromString |
( |
const std::string & |
str | ) |
|
◆ queryToString()
std::string dmlite::Url::queryToString |
( |
void |
| ) |
const |
◆ splitPath()
static std::vector<std::string> dmlite::Url::splitPath |
( |
const std::string & |
path | ) |
|
throw | ( | |
| ) | | |
|
static |
Split a path into a list of components.
- Parameters
-
- Returns
- A list with the extracted components.
◆ toString()
std::string dmlite::Url::toString |
( |
void |
| ) |
const |
◆ domain
std::string dmlite::Url::domain |
◆ path
std::string dmlite::Url::path |
◆ port
unsigned dmlite::Url::port |
◆ query
◆ scheme
std::string dmlite::Url::scheme |
The documentation for this class was generated from the following file:
- include/dmlite/cpp/utils/urls.h