Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2018-05-08 11:35:47 +02:00
commit a3b5555568
2 changed files with 6 additions and 0 deletions

View file

@ -184,6 +184,11 @@ std::string HTTP::URL::getUrl() const{
return ret; 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 /// Returns the URL in string format without auth and frag
std::string HTTP::URL::getProxyUrl() const{ std::string HTTP::URL::getProxyUrl() const{
std::string ret; std::string ret;

View file

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