summaryrefslogtreecommitdiff
path: root/include/httpd.h
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2020-02-07 17:14:05 +0000
committerEric Covener <covener@apache.org>2020-02-07 17:14:05 +0000
commitc1ac12fa3b94bf1aabf16acad38afdb4198f8f23 (patch)
treec037dda4d7abf4de6262e5e3ac383ffbe0e88eeb /include/httpd.h
parent81313af01a49df05b4f7d3996ffc2b052d1638bc (diff)
downloadhttpd-c1ac12fa3b94bf1aabf16acad38afdb4198f8f23.tar.gz
factor out TE=chunked checking
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873748 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/httpd.h')
-rw-r--r--include/httpd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/httpd.h b/include/httpd.h
index 03b7751fee..ee2acc25d9 100644
--- a/include/httpd.h
+++ b/include/httpd.h
@@ -2660,6 +2660,15 @@ AP_DECLARE(const char *)ap_dir_nofnmatch(ap_dir_match_t *w, const char *fname)
AP_DECLARE(const char *)ap_dir_fnmatch(ap_dir_match_t *w, const char *path,
const char *fname) __attribute__((nonnull(1,3)));
+/**
+ * Determine if the final Transfer-Encoding is "chunked".
+ *
+ * @param p The pool to allocate from
+ * @param line the header field-value to scan
+ * @return 1 if the last Transfer-Encoding is "chunked", else 0
+ */
+AP_DECLARE(int) ap_is_chunked(apr_pool_t *p, const char *line);
+
#ifdef __cplusplus
}
#endif