mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #18653 from smarterclayton/cancel_wrapper
Auto commit by PR queue bot
This commit is contained in:
commit
5d16372104
@ -243,6 +243,14 @@ func newDebuggingRoundTripper(rt http.RoundTripper, levels ...debugLevel) *debug
|
|||||||
return drt
|
return drt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (rt *debuggingRoundTripper) CancelRequest(req *http.Request) {
|
||||||
|
if canceler, ok := rt.delegatedRoundTripper.(requestCanceler); ok {
|
||||||
|
canceler.CancelRequest(req)
|
||||||
|
} else {
|
||||||
|
glog.Errorf("CancelRequest not implemented")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (rt *debuggingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
|
func (rt *debuggingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||||
reqInfo := newRequestInfo(req)
|
reqInfo := newRequestInfo(req)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user