Apache Mesos
Classes | Public Member Functions | Static Public Member Functions | List of all members
process::http::Server Class Reference

#include <http.hpp>

Classes

struct  CreateOptions
 
struct  StopOptions
 

Public Member Functions

 Server (Server &&that)=default
 
 Server (const Server &)=delete
 
Serveroperator= (const Server &)=delete
 
 ~Server ()
 
Future< Nothingrun ()
 
Future< Nothingstop (const StopOptions &options=DEFAULT_STOP_OPTIONS())
 
Try< network::Addressaddress () const
 

Static Public Member Functions

static CreateOptions DEFAULT_CREATE_OPTIONS ()
 
static StopOptions DEFAULT_STOP_OPTIONS ()
 
static Try< Servercreate (network::Socket socket, std::function< Future< Response >(const network::Socket &socket, const Request &)> &&f, const CreateOptions &options=DEFAULT_CREATE_OPTIONS())
 
template<typename F >
static Try< Servercreate (network::Socket socket, F &&f, const CreateOptions &options=DEFAULT_CREATE_OPTIONS())
 
static Try< Servercreate (const network::Address &address, std::function< Future< Response >(const network::Socket &, const Request &)> &&f, const CreateOptions &options=DEFAULT_CREATE_OPTIONS())
 
template<typename F >
static Try< Servercreate (const network::Address &address, F &&f, const CreateOptions &options=DEFAULT_CREATE_OPTIONS())
 

Constructor & Destructor Documentation

process::http::Server::Server ( Server &&  that)
default
process::http::Server::Server ( const Server )
delete
process::http::Server::~Server ( )

Member Function Documentation

Try<network::Address> process::http::Server::address ( ) const
static Try<Server> process::http::Server::create ( network::Socket  socket,
std::function< Future< Response >(const network::Socket &socket, const Request &)> &&  f,
const CreateOptions options = DEFAULT_CREATE_OPTIONS() 
)
static
template<typename F >
static Try<Server> process::http::Server::create ( network::Socket  socket,
F &&  f,
const CreateOptions options = DEFAULT_CREATE_OPTIONS() 
)
inlinestatic
static Try<Server> process::http::Server::create ( const network::Address address,
std::function< Future< Response >(const network::Socket &, const Request &)> &&  f,
const CreateOptions options = DEFAULT_CREATE_OPTIONS() 
)
static
template<typename F >
static Try<Server> process::http::Server::create ( const network::Address address,
F &&  f,
const CreateOptions options = DEFAULT_CREATE_OPTIONS() 
)
inlinestatic
static CreateOptions process::http::Server::DEFAULT_CREATE_OPTIONS ( )
inlinestatic
static StopOptions process::http::Server::DEFAULT_STOP_OPTIONS ( )
inlinestatic
Server& process::http::Server::operator= ( const Server )
delete
Future<Nothing> process::http::Server::run ( )
Future<Nothing> process::http::Server::stop ( const StopOptions options = DEFAULT_STOP_OPTIONS())

The documentation for this class was generated from the following file: