فهرست منبع

client: simplify CancelableTransport doc

Brian Waldon 11 سال پیش
والد
کامیت
1773d0a18b
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  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)