Let's make (git) history!

This commit is contained in:
2018-11-03 17:12:20 +01:00
incheckning 3bfebfe8a8
212 ändrade filer med 11970 tillägg och 0 borttagningar

22
gateway/cgi.h Normal file
Visa fil

@@ -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