diff options
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 70ecd6e9..f8ec0122 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -2763,6 +2763,24 @@ MHD_create_response_from_buffer (size_t size, | |||
2763 | enum MHD_ResponseMemoryMode mode); | 2763 | enum MHD_ResponseMemoryMode mode); |
2764 | 2764 | ||
2765 | 2765 | ||
2766 | |||
2767 | |||
2768 | /** | ||
2769 | * Create a response object. The response object can be extended with | ||
2770 | * header information and then be used any number of times. | ||
2771 | * | ||
2772 | * @param size size of the data portion of the response | ||
2773 | * @param buffer size bytes containing the response's data portion | ||
2774 | * @param crfc function to call to free the @a buffer | ||
2775 | * @return NULL on error (i.e. invalid arguments, out of memory) | ||
2776 | * @ingroup response | ||
2777 | */ | ||
2778 | _MHD_EXTERN struct MHD_Response * | ||
2779 | MHD_create_response_from_buffer_with_free_callback (size_t size, | ||
2780 | void *buffer, | ||
2781 | MHD_ContentReaderFreeCallback crfc); | ||
2782 | |||
2783 | |||
2766 | /** | 2784 | /** |
2767 | * Create a response object. The response object can be extended with | 2785 | * Create a response object. The response object can be extended with |
2768 | * header information and then be used any number of times. | 2786 | * header information and then be used any number of times. |