#ifndef MEMGRAPH_SERVER_HTTP_CONNECTION_INL #define MEMGRAPH_SERVER_HTTP_CONNECTION_INL #include #include "httpconnection.hpp" namespace http { template HttpConnection::HttpConnection(uv::UvLoop& loop, server_t& server) : server(server), client(loop), response(*this) { client.data(this); parser.data(this); } template void HttpConnection::close() { client.close([](uv_handle_t* client) -> void { delete reinterpret_cast(client->data); }); } } #endif