| tgbot-cpp
    | 
This class handles HTTP requests from the Internet. More...
#include <HttpServer.h>
 
  
| Classes | |
| class | Connection | 
| Public Types | |
| typedef std::function< std::string(const std::string &, const std::unordered_map< std::string, std::string > &)> | ServerHandler | 
| Public Member Functions | |
| HttpServer (const typename boost::asio::basic_socket_acceptor< Protocol >::endpoint_type &endpoint, ServerHandler handler) | |
| void | start () | 
| Starts receiving new connections. | |
| void | stop () | 
| Stops receiving new connections. | |
| Protected Member Functions | |
| void | _startAccept () | 
| Protected Attributes | |
| boost::asio::io_context | _ioService | 
| boost::asio::io_service | _ioService | 
| boost::asio::basic_socket_acceptor< Protocol > | _acceptor | 
| boost::asio::basic_stream_socket< Protocol > | _socket | 
| const ServerHandler | _handler | 
| const HttpParser | _httpParser | 
This class handles HTTP requests from the Internet.
Definition at line 25 of file HttpServer.h.
| typedef std::function<std::string (const std::string&, const std::unordered_map<std::string, std::string>&)> TgBot::HttpServer< Protocol >::ServerHandler | 
Definition at line 31 of file HttpServer.h.
| 
 | inline | 
Definition at line 33 of file HttpServer.h.
| 
 | inlineprotected | 
Definition at line 148 of file HttpServer.h.
| 
 | inline | 
Starts receiving new connections.
Definition at line 41 of file HttpServer.h.
| 
 | inline | 
Stops receiving new connections.
Definition at line 49 of file HttpServer.h.
| 
 | protected | 
Definition at line 167 of file HttpServer.h.
| 
 | protected | 
Definition at line 169 of file HttpServer.h.
| 
 | protected | 
Definition at line 170 of file HttpServer.h.
| 
 | protected | 
Definition at line 163 of file HttpServer.h.
| 
 | protected | 
Definition at line 165 of file HttpServer.h.
| 
 | protected | 
Definition at line 168 of file HttpServer.h.