diff options
Diffstat (limited to 'src/CGIScript.h')
-rw-r--r-- | src/CGIScript.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/CGIScript.h b/src/CGIScript.h new file mode 100644 index 0000000..6e8e031 --- /dev/null +++ b/src/CGIScript.h @@ -0,0 +1,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}; +}; |