17 #ifndef __MESOS_AUTHENTICATION_HTTP_AUTHENTICATEE_HPP__ 18 #define __MESOS_AUTHENTICATION_HTTP_AUTHENTICATEE_HPP__ 29 namespace authentication {
53 virtual std::string
scheme()
const = 0;
77 #endif // __MESOS_AUTHENTICATION_HTTP_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...
virtual std::string scheme() const =0
Name of the authentication scheme implemented.
An abstraction enabling any HTTP API consumer to authenticate.
Definition: authenticatee.hpp:34
virtual process::Future< process::http::Request > authenticate(const process::http::Request &request, const Option< mesos::v1::Credential > &credential)=0
Create an HTTP request for authentication.
virtual void reset()
Reset the authenticatee to its initial state.
Definition: authenticatee.hpp:46
virtual ~Authenticatee()=default
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
Definition: future.hpp:58