Rename BasicRestClient to RestBasicClient.

This commit is contained in:
Chunting Gu
2018-11-13 13:00:23 +08:00
parent e862153657
commit 964d21748a
7 changed files with 21 additions and 17 deletions
+6 -2
View File
@@ -258,8 +258,12 @@ Url::Url(const std::string& str, bool decode) {
}
}
bool Url::IsValid() const {
return !path_.empty();
bool Url::IsPathValid() const {
// URL path must be absolute.
if (path_.empty() || path_[0] != '/') {
return false;
}
return true;
}
std::vector<std::string> Url::SplitPath(const std::string& path) {