asio_handler.hpp
void read_content(const boost::system::error_code &err, const std::size_t bytes)
strip the header and read the POST data
void write_request(const boost::system::error_code &err, const std::size_t bytes)
write the cloud request to the socket
void set_socket(const std::shared_ptr< socket_type > socket)
set socket pointer
void read_headers(const boost::system::error_code &err, const std::size_t bytes)
read HTTP headers and validate
class for taking the body of the streambuf , in other case it will return an error ...
Definition: http_response.hpp:38
ASIO socket controller of boost asio socket type T.
Definition: asio_handler.hpp:27
Definition: asio_handler.hpp:14
void end(const boost::system::error_code &err)
close socket and cleanup members
asio_handler(const bool keep_alive, std::function< void(error_code)> error_callback)
construct by callbacks and socket T pointer
void read_status_line(const boost::system::error_code &err, const std::size_t bytes)
read first HTTP line and check for a 200 response