Skip to content

Commit 0917fa2

Browse files
committed
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.
1 parent 00f306e commit 0917fa2

File tree

2 files changed

+257
-257
lines changed

2 files changed

+257
-257
lines changed

0 commit comments

Comments
 (0)