Skip to content

Commit

Permalink
docs(client): remove extraneous references to HTTP/2 from HTTP/1 buil…
Browse files Browse the repository at this point in the history
…der docs

Refs: hyperium#3085
  • Loading branch information
Michael-J-Ward committed Dec 26, 2022
1 parent 5d9d350 commit d375366
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/client/conn/http1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,6 @@ impl Builder {
/// > of 400 (Bad Request). A proxy MUST remove any such whitespace from a
/// > response message before forwarding the message downstream.
///
/// Note that this setting does not affect HTTP/2.
///
/// Default is false.
///
/// [RFC 7230 Section 3.2.4.]: https://tools.ietf.org/html/rfc7230#section-3.2.4
Expand Down Expand Up @@ -376,8 +374,6 @@ impl Builder {
/// > obs-fold with one or more SP octets prior to interpreting the field
/// > value.
///
/// Note that this setting does not affect HTTP/2.
///
/// Default is false.
///
/// [RFC 7230 Section 3.2.4.]: https://tools.ietf.org/html/rfc7230#section-3.2.4
Expand All @@ -396,8 +392,6 @@ impl Builder {
/// name, or does not include a colon at all, the line will be silently ignored
/// and no error will be reported.
///
/// Note that this setting does not affect HTTP/2.
///
/// Default is false.
pub fn ignore_invalid_headers_in_responses(&mut self, enabled: bool) -> &mut Builder {
self.h1_parser_config
Expand Down Expand Up @@ -425,8 +419,6 @@ impl Builder {
/// Set whether HTTP/1 connections will write header names as title case at
/// the socket level.
///
/// Note that this setting does not affect HTTP/2.
///
/// Default is false.
pub fn title_case_headers(&mut self, enabled: bool) -> &mut Builder {
self.h1_title_case_headers = enabled;
Expand All @@ -443,8 +435,6 @@ impl Builder {
/// 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.
///
/// Default is false.
pub fn preserve_header_case(&mut self, enabled: bool) -> &mut Builder {
self.h1_preserve_header_case = enabled;
Expand All @@ -457,8 +447,6 @@ impl Builder {
/// ordering in a private extension on the `Response`. It will also look for and use
/// such an extension in any provided `Request`.
///
/// Note that this setting does not affect HTTP/2.
///
/// Default is false.
#[cfg(feature = "ffi")]
pub fn preserve_header_order(&mut self, enabled: bool) -> &mut Builder {
Expand Down

0 comments on commit d375366

Please sign in to comment.