tgbot-cpp
Loading...
Searching...
No Matches
TgBot::HttpServer< Protocol >::Connection Class Reference

#include <HttpServer.h>

Inheritance diagram for TgBot::HttpServer< Protocol >::Connection:

Public Member Functions

 Connection (boost::asio::basic_stream_socket< Protocol > socket, ServerHandler handler, const HttpParser &httpParser)
 
void start ()
 

Protected Member Functions

void _readHeader ()
 
void _readBody (std::shared_ptr< boost::asio::streambuf > data, unsigned long long size, std::shared_ptr< std::unordered_map< std::string, std::string > > headers)
 

Protected Attributes

boost::asio::basic_stream_socket< Protocol > _socket
 
const ServerHandler _handler
 
const HttpParser_httpParser
 

Detailed Description

template<typename Protocol>
class TgBot::HttpServer< Protocol >::Connection

Definition at line 54 of file HttpServer.h.

Constructor & Destructor Documentation

◆ Connection()

template<typename Protocol >
TgBot::HttpServer< Protocol >::Connection::Connection ( boost::asio::basic_stream_socket< Protocol > socket,
ServerHandler handler,
const HttpParser & httpParser )
inline

Definition at line 57 of file HttpServer.h.

Member Function Documentation

◆ _readBody()

template<typename Protocol >
void TgBot::HttpServer< Protocol >::Connection::_readBody ( std::shared_ptr< boost::asio::streambuf > data,
unsigned long long size,
std::shared_ptr< std::unordered_map< std::string, std::string > > headers )
inlineprotected

Definition at line 114 of file HttpServer.h.

◆ _readHeader()

template<typename Protocol >
void TgBot::HttpServer< Protocol >::Connection::_readHeader ( )
inlineprotected

Definition at line 71 of file HttpServer.h.

◆ start()

template<typename Protocol >
void TgBot::HttpServer< Protocol >::Connection::start ( )
inline

Definition at line 62 of file HttpServer.h.

Member Data Documentation

◆ _handler

template<typename Protocol >
const ServerHandler TgBot::HttpServer< Protocol >::Connection::_handler
protected

Definition at line 68 of file HttpServer.h.

◆ _httpParser

template<typename Protocol >
const HttpParser& TgBot::HttpServer< Protocol >::Connection::_httpParser
protected

Definition at line 69 of file HttpServer.h.

◆ _socket

template<typename Protocol >
boost::asio::basic_stream_socket<Protocol> TgBot::HttpServer< Protocol >::Connection::_socket
protected

Definition at line 67 of file HttpServer.h.


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