1#ifndef TENDUKE_HTTP_SERVER_HTTPRESPONSE_H
2#define TENDUKE_HTTP_SERVER_HTTPRESPONSE_H
9namespace tenduke {
namespace http {
namespace server {
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;
HTTP-response to be returned by a HTTP server.
Definition HTTPResponse.h:15
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
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4