diff options
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 2197d9d9..b8dfc426 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -39,10 +39,10 @@ | |||
39 | * The library also understands headers that control connection | 39 | * The library also understands headers that control connection |
40 | * management (specifically, "Connection: close" and "Expect: 100 | 40 | * management (specifically, "Connection: close" and "Expect: 100 |
41 | * continue" are understood and handled automatically).<p> | 41 | * continue" are understood and handled automatically).<p> |
42 | * | 42 | * |
43 | * MHD understands POST data and is able to decode certain formats | 43 | * MHD understands POST data and is able to decode certain formats |
44 | * (at the moment only "application/x-www-form-urlencoded") if the | 44 | * (at the moment only "application/x-www-form-urlencoded") if the |
45 | * entire data fits into the allowed amount of memory for the | 45 | * entire data fits into the allowed amount of memory for the |
46 | * connection. Unsupported encodings and large POST submissions are | 46 | * connection. Unsupported encodings and large POST submissions are |
47 | * provided as a stream to the main application (and thus can be | 47 | * provided as a stream to the main application (and thus can be |
48 | * processed, just not conveniently by MHD).<p> | 48 | * processed, just not conveniently by MHD).<p> |
@@ -325,7 +325,7 @@ enum MHD_OPTION | |||
325 | * up). Requests that have never been presented to the application | 325 | * up). Requests that have never been presented to the application |
326 | * (via MHD_AccessHandlerCallback) will not result in | 326 | * (via MHD_AccessHandlerCallback) will not result in |
327 | * notifications.<p> | 327 | * notifications.<p> |
328 | * | 328 | * |
329 | * This option should be followed by TWO pointers. First a pointer | 329 | * This option should be followed by TWO pointers. First a pointer |
330 | * to a function of type "MHD_RequestCompletedCallback" and second a | 330 | * to a function of type "MHD_RequestCompletedCallback" and second a |
331 | * pointer to a closure to pass to the request completed callback. | 331 | * pointer to a closure to pass to the request completed callback. |
@@ -407,7 +407,7 @@ enum MHD_RequestTerminationCode | |||
407 | MHD_REQUEST_TERMINATED_TIMEOUT_REACHED = 2, | 407 | MHD_REQUEST_TERMINATED_TIMEOUT_REACHED = 2, |
408 | 408 | ||
409 | /** | 409 | /** |
410 | * We had to close the session since MHD was being | 410 | * We had to close the session since MHD was being |
411 | * shut down. | 411 | * shut down. |
412 | */ | 412 | */ |
413 | MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN = 3, | 413 | MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN = 3, |
@@ -497,13 +497,13 @@ typedef int | |||
497 | 497 | ||
498 | /** | 498 | /** |
499 | * Signature of the callback used by MHD to notify the | 499 | * Signature of the callback used by MHD to notify the |
500 | * application about completed requests. | 500 | * application about completed requests. |
501 | * | 501 | * |
502 | * @param cls client-defined closure | 502 | * @param cls client-defined closure |
503 | * @param connection connection handle | 503 | * @param connection connection handle |
504 | * @param con_cls value as set by the last call to | 504 | * @param con_cls value as set by the last call to |
505 | * the MHD_AccessHandlerCallback | 505 | * the MHD_AccessHandlerCallback |
506 | * @param toe reason for request termination | 506 | * @param toe reason for request termination |
507 | * @see MHD_OPTION_NOTIFY_COMPLETED | 507 | * @see MHD_OPTION_NOTIFY_COMPLETED |
508 | */ | 508 | */ |
509 | typedef void | 509 | typedef void |
@@ -551,10 +551,10 @@ typedef int | |||
551 | * obtained from the content reader so far. | 551 | * obtained from the content reader so far. |
552 | * @return -1 for the end of transmission (or on error); | 552 | * @return -1 for the end of transmission (or on error); |
553 | * if a content transfer size was pre-set and the callback | 553 | * if a content transfer size was pre-set and the callback |
554 | * has provided fewer than that amount of data, | 554 | * has provided fewer than that amount of data, |
555 | * MHD will close the connection with the client; | 555 | * MHD will close the connection with the client; |
556 | * if no content size was specified and this is an | 556 | * if no content size was specified and this is an |
557 | * http 1.1 connection using chunked encoding, MHD will | 557 | * http 1.1 connection using chunked encoding, MHD will |
558 | * interpret "-1" as the normal end of the transfer | 558 | * interpret "-1" as the normal end of the transfer |
559 | * (possibly allowing the client to perform additional | 559 | * (possibly allowing the client to perform additional |
560 | * requests using the same TCP connection). | 560 | * requests using the same TCP connection). |
@@ -585,7 +585,7 @@ typedef void (*MHD_ContentReaderFreeCallback) (void *cls); | |||
585 | * @param data pointer to size bytes of data at the | 585 | * @param data pointer to size bytes of data at the |
586 | * specified offset | 586 | * specified offset |
587 | * @param off offset of data in the overall value | 587 | * @param off offset of data in the overall value |
588 | * @param size number of bytes in data available | 588 | * @param size number of bytes in data available |
589 | * @return MHD_YES to continue iterating, | 589 | * @return MHD_YES to continue iterating, |
590 | * MHD_NO to abort the iteration | 590 | * MHD_NO to abort the iteration |
591 | */ | 591 | */ |
@@ -796,7 +796,7 @@ const char *MHD_get_response_header (struct MHD_Response *response, | |||
796 | 796 | ||
797 | /** | 797 | /** |
798 | * Create a PostProcessor. | 798 | * Create a PostProcessor. |
799 | * | 799 | * |
800 | * A PostProcessor can be used to (incrementally) | 800 | * A PostProcessor can be used to (incrementally) |
801 | * parse the data portion of a POST request. | 801 | * parse the data portion of a POST request. |
802 | * | 802 | * |
@@ -823,9 +823,9 @@ struct MHD_PostProcessor *MHD_create_post_processor (struct MHD_Connection | |||
823 | * Parse and process POST data. | 823 | * Parse and process POST data. |
824 | * Call this function when POST data is available | 824 | * Call this function when POST data is available |
825 | * (usually during an MHD_AccessHandlerCallback) | 825 | * (usually during an MHD_AccessHandlerCallback) |
826 | * with the upload_data and upload_data_size. | 826 | * with the upload_data and upload_data_size. |
827 | * Whenever possible, this will then cause calls | 827 | * Whenever possible, this will then cause calls |
828 | * to the MHD_IncrementalKeyValueIterator. | 828 | * to the MHD_IncrementalKeyValueIterator. |
829 | * | 829 | * |
830 | * @param pp the post processor | 830 | * @param pp the post processor |
831 | * @param post_data post_data_len bytes of POST data | 831 | * @param post_data post_data_len bytes of POST data |