aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-06-20 16:30:05 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-06-20 16:30:05 +0300
commit0560bb099cd55690f48ccdd95a99810f745c9657 (patch)
treec6505bd9d8848dfb904234021511d014af631ac7
parent32a9f1dc4df378defaf1d5e7252b9241921f2191 (diff)
downloadlibmicrohttpd-0560bb099cd55690f48ccdd95a99810f745c9657.tar.gz
libmicrohttpd-0560bb099cd55690f48ccdd95a99810f745c9657.zip
MHD_add_response_header(): improved doxy
-rw-r--r--src/include/microhttpd.h4
-rw-r--r--src/microhttpd/response.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 4f09bee5..b9ea600d 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -3614,7 +3614,7 @@ MHD_destroy_response (struct MHD_Response *response);
3614 * 3614 *
3615 * When reply is generated with queued response, some headers are generated 3615 * When reply is generated with queued response, some headers are generated
3616 * automatically. Automatically generated headers are only sent to the client, 3616 * automatically. Automatically generated headers are only sent to the client,
3617 * but not added back to the response. 3617 * but not added back to the response object.
3618 * 3618 *
3619 * The list of automatic headers: 3619 * The list of automatic headers:
3620 * + "Date" header is added automatically unless already set by 3620 * + "Date" header is added automatically unless already set by
@@ -3633,6 +3633,8 @@ MHD_destroy_response (struct MHD_Response *response);
3633 * to enforce closure of the connection after sending this response. 3633 * to enforce closure of the connection after sending this response.
3634 * "Keep-Alive" cannot be enforced and will be removed automatically. 3634 * "Keep-Alive" cannot be enforced and will be removed automatically.
3635 * 3635 *
3636 * Headers are used in order as they were added.
3637 *
3636 * @param response the response to add a header to 3638 * @param response the response to add a header to
3637 * @param header the header name to add 3639 * @param header the header name to add
3638 * @param content the header value to add 3640 * @param content the header value to add
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index e1f2aebf..c91125eb 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -198,7 +198,7 @@ add_response_entry (struct MHD_Response *response,
198 * 198 *
199 * When reply is generated with queued response, some headers are generated 199 * When reply is generated with queued response, some headers are generated
200 * automatically. Automatically generated headers are only sent to the client, 200 * automatically. Automatically generated headers are only sent to the client,
201 * but not added back to the response. 201 * but not added back to the response object.
202 * 202 *
203 * The list of automatic headers: 203 * The list of automatic headers:
204 * + "Date" header is added automatically unless already set by 204 * + "Date" header is added automatically unless already set by
@@ -217,6 +217,8 @@ add_response_entry (struct MHD_Response *response,
217 * to enforce closure of the connection after sending this response. 217 * to enforce closure of the connection after sending this response.
218 * "Keep-Alive" cannot be enforced and will be removed automatically. 218 * "Keep-Alive" cannot be enforced and will be removed automatically.
219 * 219 *
220 * Headers are used in order as they were added.
221 *
220 * @param response the response to add a header to 222 * @param response the response to add a header to
221 * @param header the header name to add 223 * @param header the header name to add
222 * @param content the header value to add 224 * @param content the header value to add