Let's make (git) history!
This commit is contained in:
22
gateway/httpgateway.h
Normal file
22
gateway/httpgateway.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef HTTPGATEWAY_H
|
||||
#define HTTPGATEWAY_H
|
||||
#include "httplib.h"
|
||||
#include "gatewayinterface.h"
|
||||
#include "../requestworker.h"
|
||||
#include "../request.h"
|
||||
#include "../response.h"
|
||||
#include "../utils.h"
|
||||
class HttpGateway : public GatewayInterface
|
||||
{
|
||||
private:
|
||||
Response convertResponse(httplib::Response response);
|
||||
httplib::Response convertResponse(Response response);
|
||||
Request convertRequest(httplib::Request request);
|
||||
// void worker(const httplib::Request& req, httplib::Response& res);
|
||||
public:
|
||||
HttpGateway(const Config &config);
|
||||
bool keepReading() override;
|
||||
void work(RequestWorker &worker) override;
|
||||
};
|
||||
|
||||
#endif // HTTPGATEWAY_H
|
Reference in New Issue
Block a user