1/* Licensed to the Apache Software Foundation (ASF) under one or more 2 * contributor license agreements. See the NOTICE file distributed with 3 * this work for additional information regarding copyright ownership. 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 6 * the License. You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 18/** 19 * @file mod_request.h 20 * @brief mod_request private header file 21 * 22 * @defgroup MOD_REQUEST mod_request 23 * @ingroup APACHE_MODS 24 * @{ 25 */ 26 27#ifndef MOD_REQUEST_H 28#define MOD_REQUEST_H 29 30#include "apr.h" 31#include "apr_buckets.h" 32#include "apr_optional.h" 33 34#include "httpd.h" 35#include "util_filter.h" 36 37 38#ifdef __cplusplus 39extern "C" { 40#endif 41 42extern module AP_MODULE_DECLARE_DATA request_module; 43 44#define KEEP_BODY_FILTER "KEEP_BODY" 45#define KEPT_BODY_FILTER "KEPT_BODY" 46 47/** 48 * Core per-directory configuration. 49 */ 50typedef struct { 51 apr_off_t keep_body; 52 int keep_body_set; 53} request_dir_conf; 54 55APR_DECLARE_OPTIONAL_FN(void, ap_request_insert_filter, (request_rec * r)); 56 57APR_DECLARE_OPTIONAL_FN(void, ap_request_remove_filter, (request_rec * r)); 58 59#ifdef __cplusplus 60} 61#endif 62 63#endif /* !MOD_REQUEST_H */ 64/** @} */ 65