tgbot-cpp
|
#include <HttpServer.h>
Classes | |
class | Connection |
Public Types | |
typedef std::function< std::string(const std::string &, const std::map< std::string, std::string >)> | ServerHandler |
Public Member Functions | |
HttpServer (std::shared_ptr< boost::asio::basic_socket_acceptor< Protocol >> acceptor, const ServerHandler &handler) | |
void | start () |
void | stop () |
Protected Attributes | |
boost::asio::io_service | _ioService |
std::shared_ptr< boost::asio::basic_socket_acceptor< Protocol > > | _acceptor |
const ServerHandler | _handler |
This class handles HTTP requests from the Internet.
Definition at line 39 of file HttpServer.h.
typedef std::function<std::string (const std::string&, const std::map<std::string, std::string>)> TgBot::HttpServer< Protocol >::ServerHandler |
Definition at line 42 of file HttpServer.h.
|
inline |
Definition at line 47 of file HttpServer.h.
|
inline |
Starts receiving new connections.
Definition at line 53 of file HttpServer.h.
|
inline |
Stops receiving new connections.
Definition at line 66 of file HttpServer.h.
|
protected |
Definition at line 96 of file HttpServer.h.
|
protected |
Definition at line 97 of file HttpServer.h.
|
protected |
Definition at line 95 of file HttpServer.h.