diff options
Diffstat (limited to 'src/CGIScript.h')
-rw-r--r-- | src/CGIScript.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/CGIScript.h b/src/CGIScript.h index a64c55a..622206d 100644 --- a/src/CGIScript.h +++ b/src/CGIScript.h @@ -4,19 +4,18 @@ #include <string> #include <vector> -#include "HttpRequest.h" - class CGIScript { public: - CGIScript(const std::string& path, const HttpRequest&); + CGIScript(const std::string& script_path); ~CGIScript(); void set_environment(const char* key, const char* value); - bool is_open() const { return m_is_open; } + bool open(); std::string read_output(); private: FILE* m_pipe; + const std::string& m_script_path; bool m_is_open{false}; std::vector<const char*> m_environment_variables; |