| 285 | |
| 286 | namespace { |
| 287 | std::string BuildBaseUrl(const std::string& scheme, const std::string& authority, |
| 288 | const std::string& account_name) { |
| 289 | std::string url; |
| 290 | url += scheme + "://"; |
| 291 | if (!authority.empty()) { |
| 292 | if (authority[0] == '.') { |
| 293 | url += account_name; |
| 294 | url += authority; |
| 295 | } else { |
| 296 | url += authority; |
| 297 | url += "/"; |
| 298 | url += account_name; |
| 299 | } |
| 300 | } |
| 301 | url += "/"; |
| 302 | return url; |
| 303 | } |
| 304 | |
| 305 | template <typename... PrefixArgs> |
| 306 | Status ExceptionToStatus(const Azure::Core::RequestFailedException& exception, |
no test coverage detected