1#ifndef TENDUKE_HTTP_SERVER_HTTPRESPONSE_H
2#define TENDUKE_HTTP_SERVER_HTTPRESPONSE_H
21 explicit HTTPResponse(
const std::shared_ptr<tenduke::osa::Socket> &socket)
29 void write(
const std::string &
string)
31 socket->write(
string.c_str(),
string.length());
35 const std::shared_ptr<tenduke::osa::Socket> socket;
HTTPResponse(const std::shared_ptr< tenduke::osa::Socket > &socket)
Constructs new instance.
Definition HTTPResponse.h:21
void write(const std::string &string)
Writes following string as response.
Definition HTTPResponse.h:29
Simple HTTP-server.
Definition AbstractHTTPServer.h:14
HTTP-related services.
Definition BadRequest.h:6
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4