aboutsummaryrefslogtreecommitdiff
path: root/doc/libmicrohttpd.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r--doc/libmicrohttpd.texi18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index 2ecb64e6..d87dac76 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -2020,6 +2020,24 @@ Return @code{NULL} on error (i.e. invalid arguments, out of memory).
2020@end deftypefun 2020@end deftypefun
2021 2021
2022 2022
2023@deftypefun {struct MHD_Response *} MHD_create_response_from_buffer_with_free_callback (size_t size, void *data, MHD_ContentReaderFreeCallback crfc)
2024Create a response object. The buffer at the end must be free'd
2025by calling the @var{crfc} function.
2026
2027@table @var
2028@item size
2029size of the data portion of the response;
2030
2031@item buffer
2032the data itself;
2033
2034@item crfc
2035function to call at the end to free memory allocated at @var{buffer}.
2036@end table
2037
2038Return @code{NULL} on error (i.e. invalid arguments, out of memory).
2039@end deftypefun
2040
2023@deftypefun {struct MHD_Response *} MHD_create_response_from_data (size_t size, void *data, int must_free, int must_copy) 2041@deftypefun {struct MHD_Response *} MHD_create_response_from_data (size_t size, void *data, int must_free, int must_copy)
2024Create a response object. The response object can be extended with 2042Create a response object. The response object can be extended with
2025header information and then it can be used any number of times. 2043header information and then it can be used any number of times.