]> granicus.if.org Git - apache/commitdiff
Introduce more filter types. This gets chunking of output working
authorJeff Trawick <trawick@apache.org>
Wed, 25 Oct 2000 00:38:04 +0000 (00:38 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 25 Oct 2000 00:38:04 +0000 (00:38 +0000)
again by ensuring that the chunk filter gets added after the http
headers filter.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86739 13f79535-47bb-0310-9956-ffa450edef68

include/util_filter.h
modules/http/http_core.c

index 7c6489559d31f311ded63132fada6a0cc04e3461..36ef6255bab5448a6154ed3545aa081b7e2124d7 100644 (file)
@@ -182,8 +182,11 @@ typedef union ap_filter_func {
  * the ordering is equivalent to the order of calls to ap_add_*_filter().
  */
 typedef enum {
-    AP_FTYPE_CONTENT,
-    AP_FTYPE_CONNECTION
+    AP_FTYPE_CONTENT     = 10,
+    AP_FTYPE_HTTP_HEADER = 20,
+    AP_FTYPE_TRANSCODE   = 30,
+    AP_FTYPE_CONNECTION  = 40,
+    AP_FTYPE_NETWORK     = 50
 } ap_filter_type;
 
 /*
index 4e632f5cc48c5a2fb7d5e9346ff4c040d94df8fd..a0f3bc9d3724ecd10dbc481b0221223417a8fc8b 100644 (file)
@@ -3577,13 +3577,13 @@ static void register_hooks(void)
      */
     ap_hook_insert_filter(core_insert_filter, NULL, NULL, AP_HOOK_MIDDLE);
     ap_register_input_filter("HTTP_IN", ap_http_filter, AP_FTYPE_CONNECTION);
-    ap_register_input_filter("DECHUNK", ap_dechunk_filter, AP_FTYPE_CONNECTION + 1);
-    ap_register_input_filter("CORE_IN", core_input_filter, AP_FTYPE_CONNECTION);
-    ap_register_output_filter("HTTP_HEADER", ap_http_header_filter, AP_FTYPE_CONTENT - 1);
-    ap_register_output_filter("CORE", core_output_filter, AP_FTYPE_CONNECTION + 1);
+    ap_register_input_filter("DECHUNK", ap_dechunk_filter, AP_FTYPE_TRANSCODE);
+    ap_register_input_filter("CORE_IN", core_input_filter, AP_FTYPE_NETWORK);
+    ap_register_output_filter("HTTP_HEADER", ap_http_header_filter, AP_FTYPE_HTTP_HEADER);
+    ap_register_output_filter("CORE", core_output_filter, AP_FTYPE_NETWORK);
     ap_register_output_filter("SUBREQ_CORE", ap_sub_req_output_filter, 
                               AP_FTYPE_CONTENT);
-    ap_register_output_filter("CHUNK", chunk_filter, AP_FTYPE_CONNECTION);
+    ap_register_output_filter("CHUNK", chunk_filter, AP_FTYPE_TRANSCODE);
     ap_register_output_filter("COALESCE", coalesce_filter, AP_FTYPE_CONNECTION);
 }