[Proxy-]Authorization header producer More...
Public Member Functions | |
Authorization (const char *aHeader, const char *aDestination) | |
void | commit (std::ostream &os) |
finalizes and writes the right HTTP header to the given stream More... | |
Public Attributes | |
std::string | header |
HTTP header name to send. More... | |
std::string | destination |
used when describing password More... | |
const char * | user = nullptr |
user name to encode and send More... | |
const char * | password = nullptr |
user password to encode and send More... | |
Detailed Description
Definition at line 182 of file squidclient.cc.
Constructor & Destructor Documentation
◆ Authorization()
|
inline |
Definition at line 185 of file squidclient.cc.
Member Function Documentation
◆ commit()
void Authorization::commit | ( | std::ostream & | os | ) |
Definition at line 198 of file squidclient.cc.
References assert, base64_encode_final(), base64_encode_init(), base64_encode_len, base64_encode_update(), destination, header, password, and user.
Referenced by main().
Member Data Documentation
◆ destination
std::string Authorization::destination |
Definition at line 192 of file squidclient.cc.
Referenced by commit().
◆ header
std::string Authorization::header |
Definition at line 191 of file squidclient.cc.
Referenced by commit().
◆ password
const char* Authorization::password = nullptr |
Definition at line 194 of file squidclient.cc.
◆ user
const char* Authorization::user = nullptr |
Definition at line 193 of file squidclient.cc.
The documentation for this class was generated from the following file:
- tools/squidclient/squidclient.cc