net/http/httputil: export ReverseProxy.defaultErrorHandler #29403
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you expect to see?
It seems to me that when using ReverseProxy.ErrorHandler (from
package httputil
) a nice pattern would be to introspect the error, do special processing on or ignore certain types of errors, but then fall back to the default error handling.Therefore, I would like to export this function so I don't have to reimplement it (and reimplement
logf
):An added bonus is also that you then receive updates to this logic as Go versions progress, whereas the copied-over code would get stale.
The text was updated successfully, but these errors were encountered: