28 lines
403 B
C++
28 lines
403 B
C++
#ifndef MEMGRAPH_SPEEDY_HPP
|
|
#define MEMGRAPH_SPEEDY_HPP
|
|
|
|
#include "http/uv/uv.hpp"
|
|
#include "http/http.hpp"
|
|
|
|
namespace speedy
|
|
{
|
|
|
|
class Speedy
|
|
{
|
|
private:
|
|
uv::UvLoop loop;
|
|
http::HttpServer server;
|
|
http::Ipv4 ip;
|
|
public:
|
|
Speedy(const http::Ipv4& ip);
|
|
void get(const std::string path, http::request_cb_t callback);
|
|
void listen();
|
|
~Speedy();
|
|
};
|
|
|
|
}
|
|
|
|
#include "speedy.inl"
|
|
|
|
#endif
|