We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b18311 commit c8eced8Copy full SHA for c8eced8
src/net/http/httputil/reverseproxy.go
@@ -42,6 +42,8 @@ type ProxyRequest struct {
42
// SetURL routes the outbound request to the scheme, host, and base path
43
// provided in target. If the target's path is "/base" and the incoming
44
// request was for "/dir", the target request will be for "/base/dir".
45
+// To route requests without joining the incoming path,
46
+// set r.Out.URL directly.
47
//
48
// SetURL rewrites the outbound Host header to match the target's host.
49
// To preserve the inbound request's Host header (the default behavior
0 commit comments