![]() |
Webdar 1.0.0
Web user interface to libdar
|
uri type holds the splitted list of the scheme / hostname / path # anchor More...
#include <uri.hpp>
Public Member Functions | |
uri () | |
constructors | |
uri (const std::string &res) | |
uri (const uri &ref)=default | |
uri (uri &&ref) noexcept=default | |
uri & | operator= (const uri &ref)=default |
uri & | operator= (uri &&ref) noexcept=default |
bool | operator== (const uri &arg) const |
the anchor part of the path is not used for comparison | |
void | read (const std::string &res) |
convert an uri from a string | |
void | clear () |
clear the uri (empty uri) | |
void | trim_path () |
clear the path part only | |
const std::string & | get_scheme () const |
obtain the URI scheme (http, https, ftp, etc.) | |
const std::string & | get_hostname () const |
obtain the URI host part | |
const chemin & | get_path () const |
retrieve a path of the uri | |
const std::string & | get_anchor () const |
retrieve the anchor previously assigned to this uri (empty string if none) | |
void | set_anchor_to (const std::string &val) |
assign/replace an anchor to this uri (or remove it "" is provided) | |
std::string | get_string () const |
rebuid the uri as a single string | |
std::string | url_path_part () const |
get relative url (path + anchor) | |
void | add (const std::string &suppath) |
add members to the uri | |
void | add (const chemin &suppath) |
uri type holds the splitted list of the scheme / hostname / path # anchor