From 7f1d6bbc335288df1e24e7c8f305c32afe6b050a Mon Sep 17 00:00:00 2001 From: cflip Date: Mon, 8 May 2023 21:25:21 -0600 Subject: Begin rewriting cfws in C --- src/CGIScript.h | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/CGIScript.h (limited to 'src/CGIScript.h') 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 -#include -#include - -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 m_environment_variables; -}; -- cgit v1.2.3