Function SetBasicAuth

Synopsis

#include <include/restclient-cpp/connection.h>

void SetBasicAuth(const std::string &username, const std::string &password)

Description

set username and password for basic auth

Instance configuration methods configure basic auth

Parameters

username -

password -

Mentioned in

Source

Lines 243-248 in source/connection.cc. Line 160 in include/restclient-cpp/connection.h.

void
RestClient::Connection::SetBasicAuth(const std::string& username,
                                     const std::string& password) {
  this->basicAuth.username = username;
  this->basicAuth.password = password;
}





Add Discussion as Guest

Log in