summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2015-10-26 13:15:43 +0100
committerStefan Eissing <icing@apache.org>2015-10-26 13:15:43 +0100
commit5b5c48e6572a1949a3da09b8ff57d66f74d09919 (patch)
tree901c0516a42053c13a6bbca15deea08da7b441d3 /include
parentdisabling protocol upgrades on slave connections (diff)
downloadapache2-5b5c48e6572a1949a3da09b8ff57d66f74d09919.tar.xz
apache2-5b5c48e6572a1949a3da09b8ff57d66f74d09919.zip
first request on master connection only reports more preferred protocols in Upgrade header
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1710583 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/http_protocol.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/http_protocol.h b/include/http_protocol.h
index 20e1b782e7..34d62ad29a 100644
--- a/include/http_protocol.h
+++ b/include/http_protocol.h
@@ -788,14 +788,19 @@ AP_DECLARE_HOOK(const char *,protocol_get,(const conn_rec *c))
* upgrade to - besides the protocol currently active on the connection. These
* values may be used to announce to a client what choices it has.
*
+ * If report_all == 0, only protocols more preferable than the one currently
+ * being used, are reported. Otherwise, all available protocols beside the
+ * current one are being reported.
+ *
* @param c The current connection
* @param r The current request or NULL
* @param s The server/virtual host selected or NULL
+ * @param report_all include also protocols less preferred than the current one
* @param pupgrades on return, possible protocols to upgrade to in descending order
* of preference. Maybe NULL if none are available.
*/
AP_DECLARE(apr_status_t) ap_get_protocol_upgrades(conn_rec *c, request_rec *r,
- server_rec *s,
+ server_rec *s, int report_all,
const apr_array_header_t **pupgrades);
/**