aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-01-18 17:16:14 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-02-24 19:46:31 +0300
commitd50159bf9987c018e9ca7ed4cd72390494678da1 (patch)
tree36412a970ce6624a793ff1b4b68e30ca3b7775aa /doc
parent7bbbcd63f987b5451a29d3e084e045fc2ba1d14a (diff)
downloadlibmicrohttpd-d50159bf9987c018e9ca7ed4cd72390494678da1.tar.gz
libmicrohttpd-d50159bf9987c018e9ca7ed4cd72390494678da1.zip
Implemented new function MHD_create_response_from_iovec()
Implemented the new function, related framework, and tests for iovec-based responses. The implementation is based on the patch provided by Lawrence Sebald and Damon N. Earp from NASA.
Diffstat (limited to 'doc')
-rw-r--r--doc/libmicrohttpd.texi27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index 461ba3ac..2a4f09d2 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -1270,6 +1270,11 @@ Handle for a response.
1270@end deftp 1270@end deftp
1271 1271
1272 1272
1273@deftp {C Struct} MHD_IoVec
1274An element of an array of memory buffers.
1275@end deftp
1276
1277
1273@deftp {C Struct} MHD_PostProcessor 1278@deftp {C Struct} MHD_PostProcessor
1274@cindex POST method 1279@cindex POST method
1275Handle for @code{POST} processing. 1280Handle for @code{POST} processing.
@@ -2170,6 +2175,28 @@ MHD_destroy_response(response);
2170@end example 2175@end example
2171 2176
2172 2177
2178@deftypefun {struct MHD_Response *} MHD_create_response_from_iovec (const struct MHD_IoVec *iov, int iovcnt, MHD_ContentReaderFreeCallback crfc, void *cls)
2179Create a response object from an array of memory buffers.
2180The response object can be extended with header information and then be used
2181any number of times.
2182@table @var
2183@item iov
2184the array for response data buffers, an internal copy of this will be made;
2185
2186@item iovcnt
2187the number of elements in @var{iov};
2188
2189@item crfc
2190the callback to call to free resources associated with @var{iov};
2191
2192@item cls
2193the argument to @var{crfc};
2194@end table
2195
2196Return @code{NULL} on error (i.e. invalid arguments, out of memory).
2197@end deftypefun
2198
2199
2173 2200
2174@c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2201@c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2175 2202