summaryrefslogtreecommitdiff
path: root/src/http_cgi.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-03-04 19:11:40 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-03-07 04:38:34 -0500
commitc95f832f99d18d3a4208fb2bb8a3202fb9b74e7a (patch)
tree2282d3d0443da933f75cad5fdf0190b947edba3c /src/http_cgi.h
parent1f96e59d03f34e11cccb6fbd37e058c2d56bd806 (diff)
downloadlighttpd-git-c95f832f99d18d3a4208fb2bb8a3202fb9b74e7a.tar.gz
[core] http_cgi.[ch] CGI interfaces (RFC 3875)
collect Common Gateway Interface (CGI) interfaces (RFC 3875)
Diffstat (limited to 'src/http_cgi.h')
-rw-r--r--src/http_cgi.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/http_cgi.h b/src/http_cgi.h
new file mode 100644
index 00000000..3e505679
--- /dev/null
+++ b/src/http_cgi.h
@@ -0,0 +1,27 @@
+/*
+ * http_cgi - Common Gateway Interface (CGI) interfaces (RFC 3875)
+ *
+ * Copyright(c) 2016-2017 Glenn Strauss gstrauss()gluelogic.com All rights reserved
+ * License: BSD 3-clause (same as lighttpd)
+ */
+#ifndef INCLUDED_HTTP_CGI_H
+#define INCLUDED_HTTP_CGI_H
+#include "first.h"
+
+#include "base_decls.h"
+#include "buffer.h"
+
+typedef struct http_cgi_opts_t {
+ int authorizer;
+ int break_scriptfilename_for_php;
+ const buffer *docroot;
+ const buffer *strip_request_uri;
+} http_cgi_opts;
+
+typedef int (*http_cgi_header_append_cb)(void *vdata, const char *k, size_t klen, const char *v, size_t vlen);
+
+int http_cgi_headers (request_st *r, http_cgi_opts *opts, http_cgi_header_append_cb cb, void *vdata);
+
+handler_t http_cgi_local_redir (request_st *r);
+
+#endif