From cc232ba4549b1c47b5e4c944e6040e11563bafad Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 4 Apr 2022 09:41:25 +0000 Subject: *) 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 --- include/ap_mmn.h | 3 ++- include/http_protocol.h | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'include') 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 @@ -1319,6 +1319,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 -- cgit v1.2.1