mirror of
https://github.com/golang/go
synced 2024-09-06 00:19:45 +00:00
doc/go1.16: fix formatting in net, net/http and net/http/httputil sections
For #40700. Change-Id: I83d9ef9f79d59a0165a47ccc938fc2bf40e90703 Reviewed-on: https://go-review.googlesource.com/c/go/+/278212 Trust: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
3298300ddf
commit
5046cb8a6e
|
@ -721,8 +721,8 @@ func TestFoo(t *testing.T) {
|
|||
<p><!-- CL 250357 -->
|
||||
The case of I/O on a closed network connection, or I/O on a network
|
||||
connection that is closed before any of the I/O completes, can now
|
||||
be detected using the new <a href="/pkg/net/#ErrClosed">ErrClosed</a> error.
|
||||
A typical use would be <code>errors.Is(err, net.ErrClosed)</code>.
|
||||
be detected using the new <a href="/pkg/net/#ErrClosed"><code>ErrClosed</code></a>
|
||||
error. A typical use would be <code>errors.Is(err, net.ErrClosed)</code>.
|
||||
In earlier releases the only way to reliably detect this case was to
|
||||
match the string returned by the <code>Error</code> method
|
||||
with <code>"use of closed network connection"</code>.
|
||||
|
@ -786,9 +786,10 @@ func TestFoo(t *testing.T) {
|
|||
</p>
|
||||
|
||||
<p><!-- CL 249440 -->
|
||||
The <a href="/pkg/net/http/#ProxyFromEnvironment">ProxyFromEnvironment</a> function
|
||||
no longer returns the setting of the <code>HTTP_PROXY</code> environment
|
||||
variable for <code>https://</code> URLs when <code>HTTPS_PROXY</code> is unset.
|
||||
The <a href="/pkg/net/http/#ProxyFromEnvironment"><code>ProxyFromEnvironment</code></a>
|
||||
function no longer returns the setting of the <code>HTTP_PROXY</code>
|
||||
environment variable for <code>https://</code> URLs when
|
||||
<code>HTTPS_PROXY</code> is unset.
|
||||
</p>
|
||||
</dd>
|
||||
</dl><!-- net/http -->
|
||||
|
@ -796,7 +797,7 @@ func TestFoo(t *testing.T) {
|
|||
<dl id="net/http/httputil"><dt><a href="/pkg/net/http/httputil/">net/http/httputil</a></dt>
|
||||
<dd>
|
||||
<p><!-- CL 260637 -->
|
||||
The <a href="/pkg/net/http/httputil/#ReverseProxy">ReverseProxy</a>
|
||||
<a href="/pkg/net/http/httputil/#ReverseProxy"><code>ReverseProxy</code></a>
|
||||
now flushes buffered data more aggressively when proxying
|
||||
streamed responses with unknown body lengths.
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue