|
| Uri () |
| Construct an empty invalid Uri.
|
|
| Uri (const std::string &uri_string) |
| construct a new Davix Uri from a string URL
|
|
| Uri (const Uri &uri) |
| Copy constructor.
|
|
Uri & | operator= (const Uri &orig) |
| assignment operator
|
|
void | addQueryParam (const std::string &key, const std::string &value) |
|
void | addFragmentParam (const std::string &key, const std::string &value) |
|
void | addPathSegment (const std::string &seg) |
|
void | ensureTrailingSlash () |
| ensure that the path ends with a trailing slash
|
|
void | removeTrailingSlash () |
| remove the path's trailing slash, if it exists
|
|
bool | queryParamExists (const std::string ¶m) const |
| check if the given query parameter exists
|
|
bool | fragmentParamExists (const std::string ¶m) const |
| check if the given fragment parameter exists
|
|
const std::string | getFragmentParam (const std::string ¶m) const |
| get the value of a fragment parameter
|
|
const std::string & | getString () const |
|
int | getPort () const |
|
const std::string & | getProtocol () const |
|
const std::string & | getHost () const |
|
const std::string & | getPath () const |
|
void | setPath (const std::string &path) |
|
void | setProtocol (const std::string &protocol) |
|
void | httpizeProtocol () |
|
const std::string & | getUserInfo () const |
|
const std::string & | getPathAndQuery () const |
|
const std::string & | getFragment () const |
|
const std::string & | getQuery () const |
|
ParamVec | getQueryVec () const |
|
StatusCode::Code | getStatus () const |
|
bool | equal (const Uri &u1) const |
| test if two URI are equals
|
|
bool | operator== (const Uri &u2) const |
| compare oepration
|
|
Uri parser.
convenience class for uri parsing
Uri myuri(
"https://johnsmith:12345678@example.org:443/myfolder/myfile?type=personal#overthere");
cout << "Full uri: " << myuri.getString() << endl <<
"Port: " << myuri.getPort() << endl <<
"Protocol: " << myuri.getProtocol() << endl <<
"Host: " << myuri.getHost() << endl <<
"Path: " << myuri.getPath() << endl <<
"Query: " << myuri.getQuery() << endl <<
"Path and query: " << myuri.getPathAndQuery() << endl <<
"User info: " << myuri.getUserInfo() << endl;
Uri parser.
Definition davix_uri.hpp:55