}
SecondaryStorageConfig result;
- result.params.url = to_string(parts[0]);
+ result.params.url = std::string(parts[0]);
// The Url class is parsing the URL object lazily; check if successful.
try {
std::ignore = result.params.url.host();
}
result.params.attributes.emplace_back(
secondary::SecondaryStorage::Backend::Attribute{
- to_string(key), value, to_string(raw_value)});
+ std::string(key), value, std::string(raw_value)});
}
return result;
throw core::Fatal("Expected username:password in URL but got \"{}\"",
params.url.user_info());
}
- m_http_client.set_basic_auth(to_string(pair.first).c_str(),
- to_string(*pair.second).c_str());
+ m_http_client.set_basic_auth(std::string(pair.first).c_str(),
+ std::string(*pair.second).c_str());
}
m_http_client.set_default_headers({
return {nonstd::nullopt, nonstd::nullopt};
} else if (pair.second) {
// redis://USERNAME:PASSWORD@HOST
- return {to_string(*pair.second), to_string(pair.first)};
+ return {std::string(*pair.second), std::string(pair.first)};
} else {
// redis://PASSWORD@HOST
- return {to_string(pair.first), nonstd::nullopt};
+ return {std::string(pair.first), nonstd::nullopt};
}
}
to_absolute_path(nonstd::string_view path)
{
if (util::is_absolute_path(path)) {
- return to_string(path);
+ return std::string(path);
} else {
return Util::normalize_absolute_path(
FMT("{}/{}", Util::get_actual_cwd(), path));