libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 90b00e6f803c69a2b6868cb9ec30e84b08456683
parent 41f35bbcb5d2771ea37ed920c34d8092a58dc432
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri, 18 Mar 2022 11:39:58 +0300

Updated doxy for some of the MHD_create_response_*() functions

Diffstat:
Msrc/include/microhttpd.h | 18++++++++++++++----
Msrc/microhttpd/response.c | 25++++++++++++++-----------
2 files changed, 28 insertions(+), 15 deletions(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -3425,8 +3425,13 @@ MHD_set_response_options (struct MHD_Response *response, /** - * Create a response object. The response object can be extended with - * header information and then be used any number of times. + * Create a response object. + * The response object can be extended with header information and then be used + * any number of times. + * + * If response object is used to answer HEAD request then the body of the + * response is not used, while all headers (including automatic headers) are + * used. * * @param size size of the data portion of the response, #MHD_SIZE_UNKNOWN for unknown * @param block_size preferred block size for querying crc (advisory only, @@ -3448,8 +3453,13 @@ MHD_create_response_from_callback (uint64_t size, /** - * Create a response object. The response object can be extended with - * header information and then be used any number of times. + * Create a response object. + * The response object can be extended with header information and then be used + * any number of times. + * + * If response object is used to answer HEAD request then the body of the + * response is not used, while all headers (including automatic headers) are + * used. * * @param size size of the @a data portion of the response * @param data the data itself diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -836,8 +836,13 @@ MHD_check_response_header_token_ci (const struct MHD_Response *response, /** - * Create a response object. The response object can be extended with - * header information and then be used any number of times. + * Create a response object. + * The response object can be extended with header information and then be used + * any number of times. + * + * If response object is used to answer HEAD request then the body of the + * response is not used, while all headers (including automatic headers) are + * used. * * @param size size of the data portion of the response, #MHD_SIZE_UNKNOWN for unknown * @param block_size preferred block size for querying crc (advisory only, @@ -1267,21 +1272,19 @@ MHD_create_response_from_fd64 (uint64_t size, /** - * Create a response object with the content of provided buffer used as - * the response body. + * Create a response object. + * The response object can be extended with header information and then be used + * any number of times. * - * The response object can be extended with header information and then - * be used any number of times. - * - * If response object is used to answer HEAD request then the body - * of the response is not used, while all headers (including automatic - * headers) are used. + * If response object is used to answer HEAD request then the body of the + * response is not used, while all headers (including automatic headers) are + * used. * * @param size size of the @a data portion of the response * @param data the data itself * @param must_free libmicrohttpd should free data when done * @param must_copy libmicrohttpd must make a copy of @a data - * right away, the data maybe released anytime after + * right away, the data may be released anytime after * this call returns * @return NULL on error (i.e. invalid arguments, out of memory) * @deprecated use #MHD_create_response_from_buffer instead