31 #include <boost/optional/optional.hpp> 32 #include <boost/utility/string_ref.hpp> 40 #undef ELECTRONEUM_DEFAULT_LOG_CATEGORY 41 #define ELECTRONEUM_DEFAULT_LOG_CATEGORY "net.http" 82 return do_get_response(request);
87 boost::optional<http_response_info> do_get_response(
const http_request_info& request);
89 boost::optional<session> user;
91 std::function<void(size_t, uint8_t*)> rng;
109 std::function<std::string(const session&, boost::string_ref, boost::string_ref)>;
159 const boost::string_ref method,
const boost::string_ref uri)
162 return do_get_auth_field(method, uri);
168 boost::optional<std::pair<std::string, std::string>> do_get_auth_field(boost::string_ref, boost::string_ref);
170 boost::optional<session> user;
login(std::string username_, wipeable_string password_)
boost::optional< http_response_info > get_response(const http_request_info &request)
Implements RFC 2617 digest auth. Digests from RFC 7616 can be added.
epee::misc_utils::struct_init< response_t > response
keys(std::string nonce_, std::string opaque_, std::string realm_, algorithm generator_)
status handle_401(const http_response_info &response)
session(login credentials_)
session(login credentials_)
const T & move(const T &t)
boost::optional< std::pair< std::string, std::string > > get_auth_field(const boost::string_ref method, const boost::string_ref uri)
Implements RFC 2617 digest auth. Digests from RFC 7616 can be added.
std::function< std::string(const session &, boost::string_ref, boost::string_ref)> algorithm