| 1376 | |
| 1377 | template <typename TCredential> |
| 1378 | inline process::http::Headers createBasicAuthHeaders( |
| 1379 | const TCredential& credential) |
| 1380 | { |
| 1381 | return process::http::Headers({{ |
| 1382 | "Authorization", |
| 1383 | "Basic " + |
| 1384 | base64::encode(credential.principal() + ":" + credential.secret()) |
| 1385 | }}); |
| 1386 | } |
| 1387 | |
| 1388 | |
| 1389 | // Create WeightInfos from the specified weights flag. |
no test coverage detected