Description
I am trying to use Hyper with a stubborn web service that does not like requests with headers that do not have the first letter of each word capitalized (Content-Length
for example). I tried out some other HTTP client libraries for Rust (like tk-http
which hasn't been updated recently and mio_httpc
which doesn't work all the time with said web service), but Hyper doesn't have the issues as with the other libraries except for the header name mangling.
After reading the RFC regarding header casing, I see that header names are supposed to be case-insensitive, so Hyper is not at fault here and from looking at HeaderMap
I see that it relies on headers being lower-cased for performance.
If it is not possible to accommodate case-sensitive header names, then could it be possible to directly provide an array of headers to be used in an HTTP request?