| 9730 | } |
| 9731 | |
| 9732 | inline std::pair<std::string, std::string> |
| 9733 | make_basic_authentication_header(const std::string &username, |
| 9734 | const std::string &password, bool is_proxy) { |
| 9735 | auto field = "Basic " + detail::base64_encode(username + ":" + password); |
| 9736 | auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; |
| 9737 | return std::make_pair(key, std::move(field)); |
| 9738 | } |
| 9739 | |
| 9740 | inline std::pair<std::string, std::string> |
| 9741 | make_bearer_token_authentication_header(const std::string &token, |
no test coverage detected