Add http1_title_case_headers option to ClientBuilder (#463)
This commit is contained in:
committed by
Sean McArthur
parent
4fba983e5e
commit
aa8348ba1e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user