mhd_action.h: added doxy for the POST action

This commit is contained in:
Evgeny Grin (Karlson2k)
2024-09-24 19:32:04 +02:00
parent 50dd3677ef
commit 7a8242ecc0
2 changed files with 27 additions and 4 deletions
+27 -1
View File
@@ -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;
};
-3
View File
@@ -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");