1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-24 22:37:35 +02:00

add tests for camel case headers rendering

This commit is contained in:
Nikolay Kim
2019-04-24 11:27:57 -07:00
parent 64f603b076
commit 2e19f572ee
7 changed files with 123 additions and 26 deletions

View File

@ -235,17 +235,10 @@ impl ClientRequest {
self
}
/// Is to uppercase headers with Camel-Case.
/// Befault is `false`
/// Send headers in `Camel-Case` form.
#[inline]
pub fn upper_camel_case_headers(&self) -> bool {
self.head.upper_camel_case_headers()
}
/// Set `true` to send headers which are uppercased with Camel-Case.
#[inline]
pub fn set_upper_camel_case_headers(&mut self, value: bool) -> &mut Self {
self.head.set_upper_camel_case_headers(value);
pub fn camel_case(mut self) -> Self {
self.head.set_camel_case_headers(true);
self
}