| 89 | |
| 90 | |
| 91 | void HTTPBasicCredentials::authenticate(HTTPRequest& request) const |
| 92 | { |
| 93 | std::ostringstream ostr; |
| 94 | Base64Encoder encoder(ostr); |
| 95 | encoder.rdbuf()->setLineLength(0); |
| 96 | encoder << _username << ":" << _password; |
| 97 | encoder.close(); |
| 98 | request.setCredentials(SCHEME, ostr.str()); |
| 99 | } |
| 100 | |
| 101 | |
| 102 | void HTTPBasicCredentials::proxyAuthenticate(HTTPRequest& request) const |
nothing calls this directly
no test coverage detected