You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compiler/natives/src/net/http: Use context for request cancelation.
The http.Request.Cancel field is deprecated:
// Deprecated: Use the Context and WithContext methods
// instead. If a Request's Cancel field and context are both
// set, it is undefined whether Cancel is respected.
Cancel <-chan struct{}
See https://godoc.org/net/http#Request.Cancel.
It's okay to drop support for Cancel because implementing it is
optional:
// Not all implementations of RoundTripper may support Cancel.
Tested externally.
Regenerate.
0 commit comments