aboutsummaryrefslogtreecommitdiff
path: root/src/lib/action_parse_post.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/action_parse_post.c')
-rw-r--r--src/lib/action_parse_post.c61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/lib/action_parse_post.c b/src/lib/action_parse_post.c
new file mode 100644
index 00000000..202e52f1
--- /dev/null
+++ b/src/lib/action_parse_post.c
@@ -0,0 +1,61 @@
1/*
2 This file is part of libmicrohttpd
3 Copyright (C) 2007-2018 Daniel Pittman and Christian Grothoff
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18*/
19
20/**
21 * @file lib/action_parse_post.c
22 * @brief implementation of MHD_action_parse_post()
23 * @author Christian Grothoff
24 */
25#include "internal.h"
26
27
28
29/**
30 * Create an action that parses a POST request.
31 *
32 * This action can be used to (incrementally) parse the data portion
33 * of a POST request. Note that some buggy browsers fail to set the
34 * encoding type. If you want to support those, you may have to call
35 * #MHD_set_connection_value with the proper encoding type before
36 * returning this action (if no supported encoding type is detected,
37 * returning this action will cause a bad request to be returned to
38 * the client).
39 *
40 * @param buffer_size maximum number of bytes to use for
41 * internal buffering (used only for the parsing,
42 * specifically the parsing of the keys). A
43 * tiny value (256-1024) should be sufficient.
44 * Do NOT use a value smaller than 256. For good
45 * performance, use 32 or 64k (i.e. 65536).
46 * @param iter iterator to be called with the parsed data,
47 * Must NOT be NULL.
48 * @param iter_cls first argument to @a iter
49 * @return NULL on error (out of memory, unsupported encoding),
50 * otherwise a PP handle
51 * @ingroup request
52 */
53struct MHD_Action *
54MHD_action_parse_post (size_t buffer_size,
55 MHD_PostDataIterator iter,
56 void *iter_cls)
57{
58 return NULL; /* not yet implemented */
59}
60
61/* end of action_parse_post.c */