Let's make (git) history!

This commit is contained in:
2018-11-03 17:12:20 +01:00
當前提交 3bfebfe8a8
共有 212 個文件被更改,包括 11970 次插入0 次删除

22
gateway/cgi.h Normal file
查看文件

@@ -0,0 +1,22 @@
#ifndef CGI_H
#define CGI_H
#include "gatewayinterface.h"
#include "../requestworker.h"
class Cgi : public GatewayInterface
{
private:
bool responseSent = false;
const Config *config;
Request readRequest();
void sendResponse(const Response &r);
public:
Cgi(const Config &c);
bool keepReading() override;
void work(RequestWorker &worker) override;
~Cgi();
};
#endif // CGI_H