From: Brad Fitzpatrick Date: Mon, 20 Jul 2015 19:30:06 +0000 (-0700) Subject: doc: document net/http.Request.Cancel in go1.5.html X-Git-Tag: go1.5beta3~142 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e28ff1f3a154285607ddde23a61005b648dcd0eb;p=gostls13.git doc: document net/http.Request.Cancel in go1.5.html Change-Id: If1c12b43ef467c3ef2cbbaaba1bda4ea98032c7e Reviewed-on: https://go-review.googlesource.com/12430 Reviewed-by: Rob Pike --- diff --git a/doc/go1.5.html b/doc/go1.5.html index 282f0685b2..56adaa1558 100644 --- a/doc/go1.5.html +++ b/doc/go1.5.html @@ -1097,6 +1097,17 @@ For details, see the documentation for ResponseWriter. +
  • +There is a new method to cancel a net/http +Request by setting the new +Request.Cancel +field. +It is supported by http.Transport. +The Cancel field's type is compatible with the +context.Context.Done +return value. +
  • +
  • Also in the net/http package, there is code to ignore the zero Time value