Skip to content

Commit ed52e55

Browse files
committed
doc: note the net/http CloseNotifier changes in go1.6.html
Also reference the new Transport.ExpectContinueTimeout after the mention of 100-continue. Fixes #13721 Change-Id: I3445c011ed20f29128092c801c7a4bb4dd2b8351 Reviewed-on: https://go-review.googlesource.com/18281 Reviewed-by: Andrew Gerrand <[email protected]>
1 parent 2a75662 commit ed52e55

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

doc/go1.6.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,14 +685,23 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
685685
<a href="/pkg/http/#FileServer"><code>FileServer</code></a> now sorts its generated directory listings by file name.
686686
Second, the
687687
<a href="/pkg/http/#Client"><code>Client</code></a> now allows user code to set the
688-
<code>Expect:</code> <code>100-continue</code> header.
688+
<code>Expect:</code> <code>100-continue</code> header (see
689+
<a href="/pkg/http/#Transport"><code>Transport.ExpectContinueTimeout</code></a>).
689690
Third, there are
690691
<a href="/pkg/net/http/#pkg-constants">four new error codes</a> from RFC 6585:
691692
<code>StatusPreconditionRequired</code> (428),
692693
<code>StatusTooManyRequests</code> (429),
693694
<code>StatusRequestHeaderFieldsTooLarge</code> (431),
694695
and
695696
<code>StatusNetworkAuthenticationRequired</code> (511).
697+
Fourth, the implementation and documentation of
698+
<a href="/pkg/http/#CloseNotifier"><code>CloseNotifier</code></a>
699+
has been substantially changed.
700+
The <a href="/pkg/http/#Hijacker"><code>Hijacker</code></a>
701+
interface now works correctly on connections that have previously
702+
been used with <code>CloseNotifier</code>.
703+
The documentation now describes when <code>CloseNotifier</code>
704+
is expected to work.
696705
</li>
697706

698707
<li>

0 commit comments

Comments
 (0)