| 4432 | } |
| 4433 | |
| 4434 | inline std::pair<std::string, std::string> |
| 4435 | make_basic_authentication_header(const std::string &username, |
| 4436 | const std::string &password, bool is_proxy) { |
| 4437 | auto field = "Basic " + detail::base64_encode(username + ":" + password); |
| 4438 | auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; |
| 4439 | return std::make_pair(key, std::move(field)); |
| 4440 | } |
| 4441 | |
| 4442 | inline std::pair<std::string, std::string> |
| 4443 | make_bearer_token_authentication_header(const std::string &token, |
no test coverage detected