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.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 6d0eb4c8..8178584c 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -96,7 +96,7 @@ extern "C"
96 * they are parsed as decimal numbers. 96 * they are parsed as decimal numbers.
97 * Example: 0x01093001 = 1.9.30-1. 97 * Example: 0x01093001 = 1.9.30-1.
98 */ 98 */
99#define MHD_VERSION 0x00097505 99#define MHD_VERSION 0x00097506
100 100
101/* If generic headers don't work on your platform, include headers 101/* If generic headers don't work on your platform, include headers
102 which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 102 which define 'va_list', 'size_t', 'ssize_t', 'intptr_t',
@@ -3539,6 +3539,32 @@ MHD_create_response_from_buffer (size_t size,
3539 3539
3540 3540
3541/** 3541/**
3542 * Create a response object with the content of provided statically allocated
3543 * buffer used as the response body.
3544 *
3545 * The buffer must be valid for the lifetime of the response. The easiest way
3546 * to achieve this is to use a statically allocated buffer.
3547 *
3548 * The response object can be extended with header information and then
3549 * be used any number of times.
3550 *
3551 * If response object is used to answer HEAD request then the body
3552 * of the response is not used, while all headers (including automatic
3553 * headers) are used.
3554 *
3555 * @param size the size of the data in @a buffer, can be zero
3556 * @param buffer the buffer with the data for the response body, can be NULL
3557 * if @a size is zero
3558 * @return NULL on error (i.e. invalid arguments, out of memory)
3559 * @note Available since #MHD_VERSION 0x00097506
3560 * @ingroup response
3561 */
3562_MHD_EXTERN struct MHD_Response *
3563MHD_create_response_from_buffer_static (size_t size,
3564 const void *buffer);
3565
3566
3567/**
3542 * Create a response object with the content of provided buffer used as 3568 * Create a response object with the content of provided buffer used as
3543 * the response body. 3569 * the response body.
3544 * 3570 *