Explorar o código

client: simplify CancelableTransport doc

Brian Waldon %!s(int64=11) %!d(string=hai) anos
pai
achega
1773d0a18b
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      client/client.go

+ 2 - 3
client/client.go

@@ -64,9 +64,8 @@ type Config struct {
 	Transport CancelableTransport
 }
 
-// CancelableTransport mimics http.Transport to provide an interface which can be
-// substituted for testing (since the RoundTripper interface alone does not
-// require the CancelRequest method)
+// CancelableTransport mimics net/http.Transport, but requires that
+// the object also support request cancellation.
 type CancelableTransport interface {
 	http.RoundTripper
 	CancelRequest(req *http.Request)