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;
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;
Implements RFC 2617 digest auth. Digests from RFC 7616 can be added.
status handle_401(const http_response_info &response)
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.
boost::optional< http_response_info > get_response(const http_request_info &request)
epee::misc_utils::struct_init< response_t > response
const T & move(const T &t)
std::function< std::string(const session &, boost::string_ref, boost::string_ref)> algorithm
keys(std::string nonce_, std::string opaque_, std::string realm_, algorithm generator_)
session(login credentials_)
session(login credentials_)
login(std::string username_, wipeable_string password_)