CrowdHailer / raxx

Interface for HTTP webservers, frameworks and clients
https://hexdocs.pm/raxx
Apache License 2.0
402 stars 29 forks source link

Some considerations for header fields #65

Closed CharlesOkwuagwu closed 6 years ago

CharlesOkwuagwu commented 6 years ago

https://github.com/CrowdHailer/raxx/blob/a73694e2d41aef8c33e6463d7e77753a3d03d951/lib/raxx.ex#L258-L260

We don't need to raise an error here. See this: https://stackoverflow.com/a/5259004/44080

RFC 7230 explicitly states that field headers should be treated as case insensitive

CharlesOkwuagwu commented 6 years ago

Regarding duplicate header fields see https://tools.ietf.org/html/rfc7230#section-3.2.2

CrowdHailer commented 6 years ago

I'm taking https://tools.ietf.org/html/rfc7540 as my lead. As much as possible I wan't the use of HTTP/1 or HTTP/2 to be transparent. cowboy downcases header names to match the h2 spec now.

CharlesOkwuagwu commented 6 years ago

OK noted rfc7540

CrowdHailer commented 6 years ago

Can you add a point to the FAQ for this? :-)