diff options
Diffstat (limited to 'src/CGIScript.h')
-rw-r--r-- | src/CGIScript.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/CGIScript.h b/src/CGIScript.h deleted file mode 100644 index 3ac00d9..0000000 --- a/src/CGIScript.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once - -#include <cstdio> -#include <string> -#include <vector> - -class CGIScript { -public: - CGIScript(const std::string& script_path); - ~CGIScript(); - - void set_environment(const char* key, const char* value); - bool open(); - - std::string read_output(); - - static void validate_path(const std::string& path); - -private: - FILE* m_pipe {}; - const std::string& m_script_path; - bool m_is_open { false }; - - std::vector<const char*> m_environment_variables; -}; |