| 4816 | } |
| 4817 | |
| 4818 | inline std::pair<std::string, std::string> |
| 4819 | make_basic_authentication_header(const std::string &username, |
| 4820 | const std::string &password, bool is_proxy) { |
| 4821 | auto field = "Basic " + detail::base64_encode(username + ":" + password); |
| 4822 | auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; |
| 4823 | return std::make_pair(key, std::move(field)); |
| 4824 | } |
| 4825 | |
| 4826 | inline std::pair<std::string, std::string> |
| 4827 | make_bearer_token_authentication_header(const std::string &token, |
no test coverage detected