proposal: net/http/httputil: deprecate ReverseProxy.Director #73161
Labels
Documentation
Issues describing a change to documentation.
LibraryProposal
Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool
Proposal
Milestone
The
ReverseProxy.Rewrite
API was added (#53002) to address security/other issues (#28168, #50580) withReverseProxy.Director
.The current
httputil.ReverseProxy
documentation doesn't make it particularly clear whyRewrite
is generally preferred overDirector
(eg, gotchas).#50580 proposed:
I think deprecation of the problematic API is a good idea, but maybe there was a reason this wasn't done when
Rewrite
was added?Alternatively, the documentation for
Rewrite
and/orDirector
could be improved to make it clear why/when to use one over the other.Cc @neild
The text was updated successfully, but these errors were encountered: