xxhr 1.0.1
Examples
API Reference
xxhr
digest.hpp
1
#ifndef XXHR_DIGEST_H
2
#define XXHR_DIGEST_H
3
4
#include "auth.hpp"
5
#include "defines.hpp"
6
7
namespace
xxhr
{
8
17
class
Digest
:
public
Authentication
{
18
public
:
20
template
<
typename
UserType,
typename
PassType>
21
Digest
(UserType&& username, PassType&& password)
22
:
Authentication
{XXHR_FWD(username), XXHR_FWD(password)} {}
23
24
const
char
* GetAuthString()
const
noexcept {
return
Authentication::GetAuthString(); }
25
};
26
27
}
// namespace xxhr
28
29
#endif
xxhr::Digest
Some Web APIs requires authenticating via HTTP Digest auth ( i.e. MD5 hashed user and password ).
Definition:
digest.hpp:17
xxhr::Authentication
Some Web APIs requires authenticating via HTTP Basic auth ( i.e. base64 encoded user and password aut...
Definition:
auth.hpp:16
xxhr
main library namespace
Definition:
api.hpp:20