memgraph/speedy/http/httpconnection.hpp
Dominik Tomičević 55aa4f7fa1 moved uv to io
2015-09-20 14:30:26 +02:00

36 lines
493 B
C++

#ifndef MEMGRAPH_SERVER_HTTP_CONNECTION_HPP
#define MEMGRAPH_SERVER_HTTP_CONNECTION_HPP
#include "io/uv/uv.hpp"
#include "httpparser.hpp"
#include "request.hpp"
#include "response.hpp"
namespace http
{
class HttpServer;
class HttpConnection
{
public:
HttpConnection(uv::UvLoop& loop, HttpServer& server);
void close();
HttpServer& server;
uv::TcpStream client;
HttpParser parser;
Request request;
Response response;
bool keep_alive;
};
}
#endif