diff --git a/src/client/client.rs b/src/client/client.rs index 9125ff2a..6d9d6787 100644 --- a/src/client/client.rs +++ b/src/client/client.rs @@ -1050,8 +1050,15 @@ impl Builder { self } - /// Set whether HTTP/1 connections will write header names as provided - /// at the socket level. + /// Set whether to support preserving original header cases. + /// + /// Currently, this will record the original cases received, and store them + /// in a private extension on the `Response`. It will also look for and use + /// such an extension in any provided `Request`. + /// + /// Since the relevant extension is still private, there is no way to + /// interact with the original cases. The only effect this can have now is + /// to forward the cases in a proxy-like fashion. /// /// Note that this setting does not affect HTTP/2. /// diff --git a/src/client/conn.rs b/src/client/conn.rs index 2aa09a7f..5f087a55 100644 --- a/src/client/conn.rs +++ b/src/client/conn.rs @@ -626,8 +626,15 @@ impl Builder { self } - /// Set whether HTTP/1 connections will write header names as provided - /// at the socket level. + /// Set whether to support preserving original header cases. + /// + /// Currently, this will record the original cases received, and store them + /// in a private extension on the `Response`. It will also look for and use + /// such an extension in any provided `Request`. + /// + /// Since the relevant extension is still private, there is no way to + /// interact with the original cases. The only effect this can have now is + /// to forward the cases in a proxy-like fashion. /// /// Note that this setting does not affect HTTP/2. /// diff --git a/src/server/conn.rs b/src/server/conn.rs index 1bb8e8d6..b71f1447 100644 --- a/src/server/conn.rs +++ b/src/server/conn.rs @@ -352,8 +352,15 @@ impl Http { self } - /// Set whether HTTP/1 connections will write header names as provided - /// at the socket level. + /// Set whether to support preserving original header cases. + /// + /// Currently, this will record the original cases received, and store them + /// in a private extension on the `Request`. It will also look for and use + /// such an extension in any provided `Response`. + /// + /// Since the relevant extension is still private, there is no way to + /// interact with the original cases. The only effect this can have now is + /// to forward the cases in a proxy-like fashion. /// /// Note that this setting does not affect HTTP/2. /// diff --git a/src/server/server.rs b/src/server/server.rs index 4b09dd7c..3f5261cb 100644 --- a/src/server/server.rs +++ b/src/server/server.rs @@ -289,8 +289,15 @@ impl Builder { self } - /// Set whether HTTP/1 connections will write header names as provided - /// at the socket level. + /// Set whether to support preserving original header cases. + /// + /// Currently, this will record the original cases received, and store them + /// in a private extension on the `Request`. It will also look for and use + /// such an extension in any provided `Response`. + /// + /// Since the relevant extension is still private, there is no way to + /// interact with the original cases. The only effect this can have now is + /// to forward the cases in a proxy-like fashion. /// /// Note that this setting does not affect HTTP/2. ///