]> Cypherpunks repositories - gostls13.git/commit
http/http/httputil: add ReverseProxy.ErrorHandler
authorJulien Salleyron <julien.salleyron@gmail.com>
Mon, 13 Nov 2017 22:32:07 +0000 (23:32 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 13 Jul 2018 16:45:34 +0000 (16:45 +0000)
commit5201b1ad225e7503e368386ae3ad4f94d7b04d8b
tree0a3378db078c45481c82404171ab355163a5e8d2
parent86a0e67a03370601956133119982167ffadd526d
http/http/httputil: add ReverseProxy.ErrorHandler

This permits specifying an ErrorHandler to customize the RoundTrip
error handling if the backend fails to return a response.

Fixes #22700
Fixes #21255

Change-Id: I8879f0956e2472a07f584660afa10105ef23bf11
Reviewed-on: https://go-review.googlesource.com/77410
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/httputil/reverseproxy.go
src/net/http/httputil/reverseproxy_test.go