#ifndef MEMGRAPH_SERVER_HTTP_RESPONSE_HPP #define MEMGRAPH_SERVER_HTTP_RESPONSE_HPP #include #include "io/uv/uv.hpp" #include "status_codes.hpp" namespace http { static constexpr size_t buffer_size = 65536; template class HttpConnection; template class Response { using connection_t = HttpConnection; using response_t = Response; public: Response(connection_t& connection); void send(const std::string& body); void send(Status code, const std::string& body); std::map headers; Status status; private: connection_t& connection; uv::BlockBuffer buffer; }; } #endif