diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-11-08 14:53:19 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-11-08 14:53:19 +0100 |
commit | 10bdf39505cf525b95886c140b3c2e82e7427d29 (patch) | |
tree | 03aec14ac7204ed93ce286770c180fcbae8c2c8a /doc | |
parent | 3fc686e335437ec5f6d6270c8d713e9a01da966f (diff) | |
download | libmicrohttpd-10bdf39505cf525b95886c140b3c2e82e7427d29.tar.gz libmicrohttpd-10bdf39505cf525b95886c140b3c2e82e7427d29.zip |
add MHD_create_response_from_buffer_with_free_callback
Diffstat (limited to 'doc')
-rw-r--r-- | doc/libmicrohttpd.texi | 18 |
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) | ||
2024 | Create a response object. The buffer at the end must be free'd | ||
2025 | by calling the @var{crfc} function. | ||
2026 | |||
2027 | @table @var | ||
2028 | @item size | ||
2029 | size of the data portion of the response; | ||
2030 | |||
2031 | @item buffer | ||
2032 | the data itself; | ||
2033 | |||
2034 | @item crfc | ||
2035 | function to call at the end to free memory allocated at @var{buffer}. | ||
2036 | @end table | ||
2037 | |||
2038 | Return @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) |
2024 | Create a response object. The response object can be extended with | 2042 | Create a response object. The response object can be extended with |
2025 | header information and then it can be used any number of times. | 2043 | header information and then it can be used any number of times. |