summaryrefslogtreecommitdiff
path: root/include/util_script.h
diff options
context:
space:
mode:
authorBrian Pane <brianp@apache.org>2002-03-23 23:19:41 +0000
committerBrian Pane <brianp@apache.org>2002-03-23 23:19:41 +0000
commit804f94d21fa262773b42a371a668aac59ed9d170 (patch)
tree4c5928deee5d2111779225f181703b5ffddf179e /include/util_script.h
parent161365781c5e19f2503579294b6eaf2da4ecefb1 (diff)
downloadhttpd-804f94d21fa262773b42a371a668aac59ed9d170.tar.gz
Changed mod_cgi to not do single-byte reads to consume the
script headers git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94151 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/util_script.h')
-rw-r--r--include/util_script.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/util_script.h b/include/util_script.h
index b1620c9b3b..8229f20cc1 100644
--- a/include/util_script.h
+++ b/include/util_script.h
@@ -59,6 +59,8 @@
#ifndef APACHE_UTIL_SCRIPT_H
#define APACHE_UTIL_SCRIPT_H
+#include "apr_buckets.h"
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -125,6 +127,21 @@ AP_DECLARE(void) ap_add_common_vars(request_rec *r);
AP_DECLARE(int) ap_scan_script_header_err(request_rec *r, apr_file_t *f, char *buffer);
/**
+ * Read headers output from a script, ensuring that the output is valid. If
+ * the output is valid, then the headers are added to the headers out of the
+ * current request
+ * @param r The current request
+ * @param bb The brigade from which to read
+ * @param buffer Empty when calling the function. On output, if there was an
+ * error, the string that cause the error is stored here.
+ * @return HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise
+ * @deffunc int ap_scan_script_header_err_brigade(request_rec *r, apr_bucket_brigade *bb, char *buffer)
+ */
+AP_DECLARE(int) ap_scan_script_header_err_brigade(request_rec *r,
+ apr_bucket_brigade *bb,
+ char *buffer);
+
+/**
* Read headers strings from a script, ensuring that the output is valid. If
* the output is valid, then the headers are added to the headers out of the
* current request