何もしないフィルタ

#include "httpd.h"
#include "http_config.h"
#include "http_protocol.h"
#include "ap_config.h"

static apr_status_t test_out_filter(ap_filter_t *f, apr_bucket_brigade *bb) {
  ap_remove_output_filter(f);
  return ap_pass_brigade(f->next, bb);
}

static void test_register_hooks(apr_pool_t *p) {
  ap_register_output_filter("TEST", test_out_filter, NULL, AP_FTYPE_CONTENT_SET);
}

module AP_MODULE_DECLARE_DATA test_module = {
    STANDARD20_MODULE_STUFF, 
    NULL,                  /* create per-dir    config structures */
    NULL,                  /* merge  per-dir    config structures */
    NULL,                  /* create per-server config structures */
    NULL,                  /* merge  per-server config structures */
    NULL,                  /* table of config file commands       */
    test_register_hooks  /* register hooks                      */
};