summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2022-04-04 09:41:25 +0000
committerStefan Eissing <icing@apache.org>2022-04-04 09:41:25 +0000
commitcc232ba4549b1c47b5e4c944e6040e11563bafad (patch)
treea2220e60285f80d4865140febfce222d95cfe9a8 /include
parent4442201e61616a2a75909b26909121f469bfae7c (diff)
downloadhttpd-cc232ba4549b1c47b5e4c944e6040e11563bafad.tar.gz
*) core: add ap_h1_append_header() for single header values.
*) mod_proxy: use of new ap_h1_header(s) functions for formatting HTTP/1.1 requests. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1899550 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/ap_mmn.h3
-rw-r--r--include/http_protocol.h10
2 files changed, 12 insertions, 1 deletions
diff --git a/include/ap_mmn.h b/include/ap_mmn.h
index 04fb184048..25fa16e963 100644
--- a/include/ap_mmn.h
+++ b/include/ap_mmn.h
@@ -709,6 +709,7 @@
* Add field `body_indeterminate` in request_rec
* Add new http/1.x formatting helpers
* Add ap_assign_request()
+ * 20211221.7 (2.5.1-dev) Add ap_h1_append_header()
*/
#define MODULE_MAGIC_COOKIE 0x41503235UL /* "AP25" */
@@ -716,7 +717,7 @@
#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20211221
#endif
-#define MODULE_MAGIC_NUMBER_MINOR 6 /* 0...n */
+#define MODULE_MAGIC_NUMBER_MINOR 7 /* 0...n */
/**
* Determine if the server's current MODULE_MAGIC_NUMBER is at least a
diff --git a/include/http_protocol.h b/include/http_protocol.h
index b522f70928..589517f7d2 100644
--- a/include/http_protocol.h
+++ b/include/http_protocol.h
@@ -1320,6 +1320,16 @@ AP_DECLARE(void) ap_set_std_response_headers(request_rec *r);
AP_DECLARE(void) ap_send_interim_response(request_rec *r, int send_headers);
/**
+ * Append a header in HTTP/1.1 format to the brigade.
+ * @param b the brigade to append to
+ * @param p the pool to use
+ * @param name the name of the header field
+ * @param value the value of the header field
+ */
+AP_DECLARE(apr_status_t) ap_h1_append_header(apr_bucket_brigade *b,
+ apr_pool_t *pool,
+ const char *name, const char *value);
+/**
* Append the headers in HTTP/1.1 format to the brigade.
* @param b the brigade to append to
* @param r the reqeust this is done for (pool and logging)