MCPcopy Create free account
hub / github.com/JoaoLopesF/RemoteDebug / setAuthorization

Method setAuthorization

src/utility/WebSocketsClient.cpp:270–277  ·  view source on GitHub ↗

* set the Authorizatio for the http request * @param user const char * * @param password const char * */

Source from the content-addressed store, hash-verified

268 * @param password const char *
269 */
270void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected