Any updates on this conversation.
I'm facing the same problem where my API endpoint expects a mix of lower_case and Title-Case headers...
Any updates on this conversation.
I'm facing the same problem where my API endpoint expects a mix of lower_case and Title-Case headers...
I ended building a proxy in php with libcurl that preserves header casing. Reqwest then connects to it. Every other rust library i checked doesn’t preserve the header casing. If it's a one-off project, you can implement a basic client using TcpStream and channels for connection pooling. Goodluck sir.
Thank you for your reply.
I was thinking the same thing, as this is an edge case that does not normally occur.
Nevertheless, it would be nice if there were a little more control for exceptional cases.
Not to hold brief for anyone, per the http standards, headers are supposed to be case insensitive. Most old upstream servers in my domain are case sensitive unfortunately.
All the libraries I tried out, per their manifesto are http standards compliant. It raises a subtle argument that conversion to lower case in a way makes it case sensitive.