diff options
author | Graham Leggett <minfrin@apache.org> | 2008-04-11 18:41:53 +0000 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2008-04-11 18:41:53 +0000 |
commit | b613588a307b4673ed9ed587a2a5eeaa4f956067 (patch) | |
tree | 09d4db565ecb6a44b63efb413332d039b4093ddd /include/http_protocol.h | |
parent | 76e9c2b0ba95d604b5eac15c1a30bced9854e9ba (diff) | |
download | httpd-b613588a307b4673ed9ed587a2a5eeaa4f956067.tar.gz |
Move the KeptBodySize directive, kept_body filters and the
ap_parse_request_body function out of the http module and into a
new module called mod_request, reducing the size of the core.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@647263 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_protocol.h')
-rw-r--r-- | include/http_protocol.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/include/http_protocol.h b/include/http_protocol.h index e85a3d1d0a..e93901e1f2 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -670,54 +670,6 @@ AP_DECLARE(void) ap_finalize_sub_req_protocol(request_rec *sub_r); */ AP_DECLARE(void) ap_send_interim_response(request_rec *r, int send_headers); -/** - * Structure to store the contents of an HTTP form of the type - * application/x-www-form-urlencoded. - * - * Currently it contains the name as a char* of maximum length - * HUGE_STRING_LEN, and a value in the form of a bucket brigade - * of arbitrary length. - */ -typedef struct { - const char *name; - apr_bucket_brigade *value; -} ap_form_pair_t; - -/** - * Read the body and parse any form found, which must be of the - * type application/x-www-form-urlencoded. - * - * Name/value pairs are returned in an array, with the names as - * strings with a maximum length of HUGE_STRING_LEN, and the - * values as bucket brigades. This allows values to be arbitrarily - * large. - * - * All url-encoding is removed from both the names and the values - * on the fly. The names are interpreted as strings, while the - * values are interpreted as blocks of binary data, that may - * contain the 0 character. - * - * In order to ensure that resource limits are not exceeded, a - * maximum size must be provided. If the sum of the lengths of - * the names and the values exceed this size, this function - * will return HTTP_REQUEST_ENTITY_TOO_LARGE. - * - * An optional number of parameters can be provided, if the number - * of parameters provided exceeds this amount, this function will - * return HTTP_REQUEST_ENTITY_TOO_LARGE. If this value is negative, - * no limit is imposed, and the number of parameters is in turn - * constrained by the size parameter above. - * - * This function honours any kept_body configuration, and the - * original raw request body will be saved to the kept_body brigade - * if so configured, just as ap_discard_request_body does. - * - * NOTE: File upload is not yet supported, but can be without change - * to the function call. - */ -AP_DECLARE(int) ap_parse_request_form(request_rec * r, apr_array_header_t ** ptr, - apr_size_t num, apr_size_t size); - #ifdef __cplusplus } #endif |