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.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index d4f6c139..9755dd7f 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -1974,6 +1974,23 @@ union MHD_ConnectionInfo
1974 1974
1975 1975
1976/** 1976/**
1977 * I/O vector type. Provided for use with MHD_create_response_from_iovec.
1978 */
1979struct MHD_IoVec
1980{
1981 /**
1982 * The pointer to the memory region for I/O.
1983 */
1984 void *iov_base;
1985
1986 /**
1987 * The size in bytes of the memory region for I/O.
1988 */
1989 size_t iov_len;
1990};
1991
1992
1993/**
1977 * Values of this enum are used to specify what 1994 * Values of this enum are used to specify what
1978 * information about a connection is desired. 1995 * information about a connection is desired.
1979 * @ingroup request 1996 * @ingroup request
@@ -3230,6 +3247,27 @@ MHD_create_response_from_fd_at_offset64 (uint64_t size,
3230 3247
3231 3248
3232/** 3249/**
3250 * Create a response object from an array of memory buffers.
3251 * The response object can be extended with header information and then be used
3252 * any number of times.
3253 *
3254 * @param iov the array for response data buffers, an internal copy of this
3255 * will be made
3256 * @param iovcnt the number of elements in @a iov
3257 * @param free_cb the callback to clean up any data associated with @a iov when
3258 * the response is destroyed.
3259 * @param cls the argument passed to @a free_cb
3260 * @return NULL on error (i.e. invalid arguments, out of memory)
3261 * @ingroup response
3262 */
3263_MHD_EXTERN struct MHD_Response *
3264MHD_create_response_from_iovec (const struct MHD_IoVec *iov,
3265 int iovcnt,
3266 MHD_ContentReaderFreeCallback free_cb,
3267 void *cls);
3268
3269
3270/**
3233 * Enumeration for actions MHD should perform on the underlying socket 3271 * Enumeration for actions MHD should perform on the underlying socket
3234 * of the upgrade. This API is not finalized, and in particular 3272 * of the upgrade. This API is not finalized, and in particular
3235 * the final set of actions is yet to be decided. This is just an 3273 * the final set of actions is yet to be decided. This is just an