diff options
| author | Ryan Bloom <rbb@apache.org> | 2000-10-16 23:15:55 +0000 |
|---|---|---|
| committer | Ryan Bloom <rbb@apache.org> | 2000-10-16 23:15:55 +0000 |
| commit | 25535f86eca48fe2e4c3ce27419ebea05b86a120 (patch) | |
| tree | 12318aad70ff91a8830d8f78fde4cd0f04d22168 /include/http_request.h | |
| parent | d1c3f2e86442c2943441d3542c64bd6024f3e771 (diff) | |
| download | httpd-25535f86eca48fe2e4c3ce27419ebea05b86a120.tar.gz | |
Add a sub-request filter. This filter just strips the EOS from the
brigade generated by the sub-request. If this is not done, then the
main-request's core_output_filter will get very confused, as will any other
filter in the main-request filter-stack that looks for EOS.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86618 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_request.h')
| -rw-r--r-- | include/http_request.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/http_request.h b/include/http_request.h index cf5e6f8ef1..444eddca61 100644 --- a/include/http_request.h +++ b/include/http_request.h @@ -60,6 +60,7 @@ #define APACHE_HTTP_REQUEST_H #include "ap_hooks.h" +#include "util_filter.h" #ifdef __cplusplus extern "C" { @@ -121,6 +122,15 @@ AP_DECLARE(request_rec *) ap_sub_req_lookup_file(const char *new_file, AP_DECLARE(request_rec *) ap_sub_req_method_uri(const char *method, const char *new_file, const request_rec *r); +/** + * An output filter to strip EOS buckets from sub-requests. This always + * has to be inserted at the end of a sub-requests filter stack. + * @param f The current filter + * @param bb The brigade to filter + * @deffuc apr_status_t ap_sub_req_output_filter(ap_filter_t *f, ap_bucket_brigade *bb) + */ +AP_CORE_DECLARE(apr_status_t) ap_sub_req_output_filter(ap_filter_t *f, + ap_bucket_brigade *bb); /** * Run the handler for the sub request |
