memgraph/speedy/http/httpconnection.hpp

36 lines
493 B
C++
Raw Normal View History

#ifndef MEMGRAPH_SERVER_HTTP_CONNECTION_HPP
#define MEMGRAPH_SERVER_HTTP_CONNECTION_HPP
2015-09-20 20:30:26 +08:00
#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