[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/07: MHD_queue_response(): improved doxy
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/07: MHD_queue_response(): improved doxy |
Date: |
Mon, 07 Mar 2022 19:36:09 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit f46f4b75dd3bc97f3e20403fde46d37087f89d61
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Mar 6 19:56:30 2022 +0300
MHD_queue_response(): improved doxy
---
src/include/microhttpd.h | 5 +++++
src/microhttpd/connection.c | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 42409403..d26702da 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -3224,6 +3224,11 @@ MHD_lookup_connection_value_n (struct MHD_Connection
*connection,
* For suspended connection this function can be called at any moment. Response
* will be sent as soon as connection is resumed.
*
+ * 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. In practice, the same response object can be used to respond to
+ * both HEAD and GET requests.
+ *
* @param connection the connection identifying the client
* @param status_code HTTP status code (i.e. #MHD_HTTP_OK)
* @param response response to transmit, the NULL is tolerated
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 9e764b02..f408d1f1 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -5110,6 +5110,11 @@ MHD_set_connection_option (struct MHD_Connection
*connection,
* For suspended connection this function can be called at any moment. Response
* will be sent as soon as connection is resumed.
*
+ * 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. In practice, the same response object can be used to respond to
+ * both HEAD and GET requests.
+ *
* @param connection the connection identifying the client
* @param status_code HTTP status code (i.e. #MHD_HTTP_OK)
* @param response response to transmit, the NULL is tolerated
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (02634d01 -> 1a46bfd6), gnunet, 2022/03/07
- [libmicrohttpd] 01/07: connection.c: added function to check used reply, gnunet, 2022/03/07
- [libmicrohttpd] 07/07: memorypool: fixed: unpoison memory for ASAN before destroying pool, gnunet, 2022/03/07
- [libmicrohttpd] 04/07: response.c: fixed coding style, gnunet, 2022/03/07
- [libmicrohttpd] 03/07: response: added automatic flag MHD_RAF_HAS_CONTENT_LENGTH, gnunet, 2022/03/07
- [libmicrohttpd] 05/07: response headers: do not add automatic "Content-Length" header if response already has it, gnunet, 2022/03/07
- [libmicrohttpd] 06/07: reply: warn if manual "Content-Length" is used when this header is not allowed, gnunet, 2022/03/07
- [libmicrohttpd] 02/07: MHD_queue_response(): improved doxy,
gnunet <=