Add http1_title_case_headers option to ClientBuilder (#463)

This commit is contained in:
Antoine Carton
2019-02-27 22:21:50 +01:00
committed by Sean McArthur
parent 4fba983e5e
commit aa8348ba1e
2 changed files with 25 additions and 0 deletions

View File

@@ -324,6 +324,19 @@ impl ClientBuilder {
self.with_inner(|inner| inner.h2_prior_knowledge())
}
/// Enable case sensitive headers.
///
/// # Example
///
/// ```
/// let client = reqwest::Client::builder()
/// .http1_title_case_headers()
/// .build().unwrap();
/// ```
pub fn http1_title_case_headers(self) -> ClientBuilder {
self.with_inner(|inner| inner.http1_title_case_headers())
}
/// Bind to a local IP Address
///
/// # Example