summaryrefslogtreecommitdiff
path: root/include/mod_request.h
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2011-02-18 18:40:31 +0000
committerJim Jagielski <jim@apache.org>2011-02-18 18:40:31 +0000
commitec88a92d838dd25a456fb844a2a8395bc32381fd (patch)
tree69572669a5fc537b3ec1460a9718048279b9b1eb /include/mod_request.h
parentaac783bdf533372c7b79c06aa01b45d27424402d (diff)
downloadhttpd-ec88a92d838dd25a456fb844a2a8395bc32381fd.tar.gz
Expose "new" ap_parse_form_data() function instead of requiring
mod_request for any module that may want to parse form data... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1072099 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/mod_request.h')
-rw-r--r--include/mod_request.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/include/mod_request.h b/include/mod_request.h
index b65c4dcfef..ed28c05d20 100644
--- a/include/mod_request.h
+++ b/include/mod_request.h
@@ -52,56 +52,6 @@ typedef struct {
int keep_body_set;
} request_dir_conf;
-/**
- * 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.
- */
-
-APR_DECLARE_OPTIONAL_FN(int, ap_parse_request_form, (request_rec * r, ap_filter_t * f,
- apr_array_header_t ** ptr,
- apr_size_t num, apr_size_t size));
-
APR_DECLARE_OPTIONAL_FN(void, ap_request_insert_filter, (request_rec * r));
APR_DECLARE_OPTIONAL_FN(void, ap_request_remove_filter, (request_rec * r));