-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http/httputil: add Error handler in ReverseProxy #22700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Dup of #21255? There's a pending fix at https://go-review.googlesource.com/c/go/+/54030 |
Change https://golang.org/cl/77410 mentions this issue: |
You can specify an ErrorHandler to customize the RoundTrip error handling. Fixes golang#22700 Change-Id: I8879f0956e2472a07f584660afa10105ef23bf11
Change https://golang.org/cl/78495 mentions this issue: |
Sure, thanks for the vigilance @tmthrgd! |
/cc @tombergan? |
I like the ErrorHandler approach more than overloading ModifyResponse. Let's go with a cleaned-up CL 78495. I'll send the minimal edits required. |
I would love to be able to customize the
RoundTrip
error handling.We should be able to change the default behavior that always writes
StatusBadGateway
.For example:
The text was updated successfully, but these errors were encountered: