List of all members
xxhr::Digest Class Reference

Some Web APIs requires authenticating via HTTP Digest auth ( i.e. MD5 hashed user and password ). More...

Additional Inherited Members

- Public Member Functions inherited from xxhr::Authentication
template<typename UserType , typename PassType >
 Authentication (UserType &&username, PassType &&password)
 Specify username and password for basic auth.
 

Detailed Description

Please note that this authentication mode as of xxhr v0.0.2 is supported only in WebAssembly backend.

// For example connecting to the Github API v3 with your Github Credentials
GET("https://api.github.com/search/code"s,
Digest{"username", "password"},
// Will be transmitted as MD5 hash.
Parameters{{"q", "authenticated search string"}},
on_response = [](auto&& resp) {
std::cout << resp.text;
});

The documentation for this class was generated from the following file:
xxhr::on_response
constexpr make_handler_t< on_response_ > on_response
Continuation callback ( i.e. signature : void callback(xxhr::Response)) for the asynchronous HTTP ope...
Definition: handler.hpp:39
xxhr::GET
void GET(Ts &&... ts)
HTTP GET Request.
Definition: api.hpp:41