mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
mhd_action.h: added doxy for the POST action
This commit is contained in:
+27
-1
@@ -164,15 +164,41 @@ typedef const struct MHD_UploadAction *
|
||||
#endif /* ! MHD_POST_DATA_READER_DEFINED */
|
||||
|
||||
|
||||
// TODO: correct and describe
|
||||
/**
|
||||
* The data for performing POST action
|
||||
*/
|
||||
struct mhd_PostParseActionData
|
||||
{
|
||||
/**
|
||||
* The maximum size allowed for the buffers to parse the POST data.
|
||||
*/
|
||||
size_t buffer_size;
|
||||
/**
|
||||
* The size of the field (in encoded form) above which values are not
|
||||
* buffered and incrementally "streamed"
|
||||
*/
|
||||
size_t max_nonstream_size;
|
||||
/**
|
||||
* The data encoding to use,
|
||||
* #MHD_HTTP_POST_ENCODING_OTHER indicates automatic detection
|
||||
*/
|
||||
enum MHD_HTTP_PostEncoding enc;
|
||||
/**
|
||||
* The callback function which process values in "streaming" way.
|
||||
* Can be NULL.
|
||||
*/
|
||||
MHD_PostDataReader stream_reader;
|
||||
/**
|
||||
* The closure for the @a stream_reader
|
||||
*/
|
||||
void *reader_cls;
|
||||
/**
|
||||
* The "final" callback, called after all POST data has been parsed.
|
||||
*/
|
||||
MHD_PostDataFinished done_cb;
|
||||
/**
|
||||
* The closure for the @a done_cb
|
||||
*/
|
||||
void *done_cb_cls;
|
||||
};
|
||||
|
||||
|
||||
@@ -3002,9 +3002,6 @@ mhd_stream_call_app_request_cb (struct MHD_Connection *restrict c)
|
||||
case mhd_ACTION_ABORT:
|
||||
mhd_conn_pre_close_app_abort (c);
|
||||
return true;
|
||||
#ifndef HAVE_POST_PARSER
|
||||
case mhd_ACTION_POST_PARSE:
|
||||
#endif /* ! HAVE_POST_PARSER */
|
||||
case mhd_ACTION_NO_ACTION:
|
||||
default:
|
||||
mhd_assert (0 && "Impossible value");
|
||||
|
||||
Reference in New Issue
Block a user