21 lines
412 B
C++
21 lines
412 B
C++
#ifndef CPR_DIGEST_H
|
|
#define CPR_DIGEST_H
|
|
|
|
#include "cpr/auth.h"
|
|
#include "cpr/defines.h"
|
|
|
|
namespace cpr {
|
|
|
|
class Digest : public Authentication {
|
|
public:
|
|
template <typename UserType, typename PassType>
|
|
Digest(UserType&& username, PassType&& password)
|
|
: Authentication{CPR_FWD(username), CPR_FWD(password)} {}
|
|
|
|
const char* GetAuthString() const noexcept;
|
|
};
|
|
|
|
} // namespace cpr
|
|
|
|
#endif
|