Added HTTP::URL::getFilePath()

This commit is contained in:
Thulinma 2018-05-03 16:11:33 +02:00
parent c370930c70
commit 2e65c1e431
2 changed files with 6 additions and 0 deletions

View file

@ -182,6 +182,11 @@ std::string HTTP::URL::getUrl() const{
return ret;
}
/// Returns the full file path, in case this is a local file URI
std::string HTTP::URL::getFilePath() const{
return "/"+path;
}
/// Returns the URL in string format without auth and frag
std::string HTTP::URL::getProxyUrl() const{
std::string ret;

View file

@ -79,6 +79,7 @@ namespace HTTP{
uint32_t getPort() const;
uint32_t getDefaultPort() const;
std::string getUrl() const;
std::string getFilePath() const;
std::string getBareUrl() const;
std::string getProxyUrl() const;
std::string host; ///< Hostname or IP address of URL