diff options
author | Eric Covener <covener@apache.org> | 2020-02-07 18:14:05 +0100 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2020-02-07 18:14:05 +0100 |
commit | c1ac12fa3b94bf1aabf16acad38afdb4198f8f23 (patch) | |
tree | c037dda4d7abf4de6262e5e3ac383ffbe0e88eeb /include/httpd.h | |
parent | factor out default regex flags (diff) | |
download | apache2-c1ac12fa3b94bf1aabf16acad38afdb4198f8f23.tar.xz apache2-c1ac12fa3b94bf1aabf16acad38afdb4198f8f23.zip |
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.h | 9 |
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 |