Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Requirements for a cohttp proxy #501
As mentioned in #498 I'm looking at implementing an http proxy using cohttp.
I thought it would be helpful to list them here so features can be added, or tests written for each requirement.
This is not accurate. To quote RFC 7230 3.2.2:
It's ok to rearrange independent headers, but for duplicate headers the order is significant since they are normalised by concatenating them in the order they are received.
In practise it'll be expensive for Cohttp to preserve the order of other fields since we sort them into a Map. We can preserve it if we want, but its not necessary according to the spec.