| 60 | |
| 61 | |
| 62 | void HTTPCredentials::fromURI(const URI& uri) |
| 63 | { |
| 64 | std::string username; |
| 65 | std::string password; |
| 66 | |
| 67 | extractCredentials(uri, username, password); |
| 68 | setUsername(username); |
| 69 | setPassword(password); |
| 70 | _digest.reset(); |
| 71 | } |
| 72 | |
| 73 | |
| 74 | void HTTPCredentials::authenticate(HTTPRequest& request, const HTTPResponse& response) |