17 #ifndef __AUTHENTICATION_HTTP_BASIC_AUTHENTICATEE_HPP__ 18 #define __AUTHENTICATION_HTTP_BASIC_AUTHENTICATEE_HPP__ 31 namespace authentication {
33 class BasicAuthenticateeProcess;
52 std::string
scheme()
const override;
66 #endif // __AUTHENTICATION_HTTP_BASIC_AUTHENTICATEE_HPP__ Definition: option.hpp:29
Future< Response > request(const Request &request, bool streamedResponse=false)
Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...
BasicAuthenticatee & operator=(const BasicAuthenticatee &)=delete
An abstraction enabling any HTTP API consumer to authenticate.
Definition: authenticatee.hpp:34
std::string scheme() const override
Name of the authentication scheme implemented.
~BasicAuthenticatee() override
Authenticatee implementing the client side of basic HTTP authentication.
Definition: basic_authenticatee.hpp:39
URI http(const std::string &host, const std::string &path="/", const Option< int > &port=None(), const Option< std::string > &query=None(), const Option< std::string > &fragment=None(), const Option< std::string > &user=None(), const Option< std::string > &password=None())
Creates an http URI with the given parameters.
Definition: http.hpp:35
process::Future< process::http::Request > authenticate(const process::http::Request &request, const Option< mesos::v1::Credential > &credential) override
Create an HTTP request for authentication.
Definition: future.hpp:58