* set the Authorizatio for the http request * @param user const char * * @param password const char * */
| 268 | * @param password const char * |
| 269 | */ |
| 270 | void WebSocketsClient::setAuthorization(const char * user, const char * password) { |
| 271 | if(user && password) { |
| 272 | String auth = user; |
| 273 | auth += ":"; |
| 274 | auth += password; |
| 275 | _client.base64Authorization = base64_encode((uint8_t *) auth.c_str(), auth.length()); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | /** |
| 280 | * set the Authorizatio for the http request |
nothing calls this directly
no outgoing calls
no test coverage detected