resty icon indicating copy to clipboard operation
resty copied to clipboard

Is there a way to maintain header order?

Open joec18 opened this issue 3 years ago • 2 comments

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.

joec18 avatar Jan 07 '22 21:01 joec18

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.

moorereason avatar Jan 07 '22 22:01 moorereason

@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?

chb0github avatar Jun 23 '22 22:06 chb0github