From e28ff1f3a154285607ddde23a61005b648dcd0eb Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 20 Jul 2015 12:30:06 -0700 Subject: [PATCH] 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 --- doc/go1.5.html | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.48.1