summaryrefslogtreecommitdiff
path: root/src/CGIScript.h
blob: 6e8e0315eb2de69eed87377df525e0fb995d3e0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <cstdio>
#include <string>

#include "HttpRequest.h"

class CGIScript {
public:
	CGIScript(const std::string& path, const HttpRequest&);
	~CGIScript();

	bool is_open() const { return m_is_open; }

	std::string read_output();
private:
	FILE* m_pipe;
	bool m_is_open{false};
};