gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]