diff options
author | cflip <cflip@cflip.net> | 2023-05-08 21:25:21 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-05-08 21:25:21 -0600 |
commit | 7f1d6bbc335288df1e24e7c8f305c32afe6b050a (patch) | |
tree | 3ca1784ab73315e44dd9e03b2f0e244a59158fbc /src/CGIScript.h | |
parent | 83fb0b96c94e7f596f81d5bc346150904457ed64 (diff) |
Begin rewriting cfws in C
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; -}; |