8 #include <sys/socket.h>
48 tdbg(
"http_base: wrote data successfully, " << bytes <<
"/" <<
m_data_buffer.
size() <<
" bytes" << std::endl);
void write_content(socket &sock)
tasks::tools::buffer m_data_buffer
void write_data(socket &sock)
Write a HTTP object to a socket.
virtual void prepare_data_buffer()=0
Prepare a HTTP request/response to be sent.
std::streamsize write(const char *data, std::size_t len, int port=-1, std::string ip="")
void write_headers(socket &sock)
tasks::tools::buffer m_content_buffer
static const std::string NO_VAL