resty
resty copied to clipboard
Is there a way to maintain header order?
Hello,
I really like Resty, but I noticed the order of my headers are not always preserved. Is there a way to make it so the order is what I specify? It is important for my use-case because the request will fail if the order is wrong.
AFAIK, it's not possible with the Go http package, which is what Resty is built upon. See https://github.com/golang/go/issues/24375 for more details.
@jj0e - for the record, that is not at all part of the http spec. When you say "order" do you mean insertion order or sort order?