GoDoxy/src/docker/idlewatcher/round_trip.go
2024-09-19 20:40:03 +08:00

14 lines
263 B
Go

package idlewatcher
import "net/http"
type (
roundTripper struct {
patched roundTripFunc
}
roundTripFunc func(*http.Request) (*http.Response, error)
)
func (rt roundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
return rt.patched(req)
}