aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index eb96e807..76c1be0b 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -62,7 +62,7 @@ extern "C"
62/** 62/**
63 * Current version of the library. 63 * Current version of the library.
64 */ 64 */
65#define MHD_VERSION 0x00000000 65#define MHD_VERSION 0x00000003
66 66
67/** 67/**
68 * MHD-internal return codes. 68 * MHD-internal return codes.
@@ -279,6 +279,13 @@ enum MHD_OPTION
279 */ 279 */
280 MHD_OPTION_CONNECTION_LIMIT = 2, 280 MHD_OPTION_CONNECTION_LIMIT = 2,
281 281
282 /**
283 * After how many seconds of inactivity should a
284 * connection automatically be timed out? (followed
285 * by an unsigned int; use zero for no timeout).
286 */
287 MHD_OPTION_CONNECTION_TIMEOUT = 3,
288
282}; 289};
283 290
284/** 291/**
@@ -560,12 +567,18 @@ MHD_queue_response (struct MHD_Connection *connection,
560 * header information and then be used any number of times. 567 * header information and then be used any number of times.
561 * 568 *
562 * @param size size of the data portion of the response, -1 for unknown 569 * @param size size of the data portion of the response, -1 for unknown
570 * @param block_size preferred block size for querying crc (advisory only,
571 * MHD may still call crc using smaller chunks); this
572 * is essentially the buffer size used for IO, clients
573 * should pick a value that is appropriate for IO and
574 * memory performance requirements
563 * @param crc callback to use to obtain response data 575 * @param crc callback to use to obtain response data
564 * @param crc_cls extra argument to crc 576 * @param crc_cls extra argument to crc
565 * @param crfc callback to call to free crc_cls resources 577 * @param crfc callback to call to free crc_cls resources
566 * @return NULL on error (i.e. invalid arguments, out of memory) 578 * @return NULL on error (i.e. invalid arguments, out of memory)
567 */ 579 */
568struct MHD_Response *MHD_create_response_from_callback (size_t size, 580struct MHD_Response *MHD_create_response_from_callback (size_t size,
581 unsigned int block_size,
569 MHD_ContentReaderCallback 582 MHD_ContentReaderCallback
570 crc, void *crc_cls, 583 crc, void *crc_cls,
571 MHD_ContentReaderFreeCallback 584 MHD_ContentReaderFreeCallback