elazarl / goproxy

An HTTP proxy library for Go
BSD 3-Clause "New" or "Revised" License
6.06k stars 1.1k forks source link

How best to modify HTTP data and header order #500

Closed klmunday closed 1 year ago

klmunday commented 1 year ago

Hi,

I'm looking to use goproxy to create a proxy which modifies specific parts of push request:

What would be the best way to handle this? I have already tried modifying the header orders but they get sorted later in the request handling.

My current thought is that it would require a custom RoundTripper/Transport but wanted to look to see if anyone else has tried anything similar.