mirror of
https://github.com/golang/go
synced 2024-09-30 06:04:30 -06:00
net/http: fix typo in Response.Body field docs
Fixes #31096 Change-Id: I5b36bfc6d18eb8c1bbf15abcd92b0e6559cda3c8 Reviewed-on: https://go-review.googlesource.com/c/go/+/169683 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
722b1abbcf
commit
ea9eddb3e7
@ -12,12 +12,13 @@ import (
|
|||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"golang.org/x/net/http/httpguts"
|
|
||||||
"io"
|
"io"
|
||||||
"net/textproto"
|
"net/textproto"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"golang.org/x/net/http/httpguts"
|
||||||
)
|
)
|
||||||
|
|
||||||
var respExcludeHeader = map[string]bool{
|
var respExcludeHeader = map[string]bool{
|
||||||
@ -66,7 +67,7 @@ type Response struct {
|
|||||||
// with a "chunked" Transfer-Encoding.
|
// with a "chunked" Transfer-Encoding.
|
||||||
//
|
//
|
||||||
// As of Go 1.12, the Body will be also implement io.Writer
|
// As of Go 1.12, the Body will be also implement io.Writer
|
||||||
// on a successful "101 Switching Protocols" responses,
|
// on a successful "101 Switching Protocols" response,
|
||||||
// as used by WebSockets and HTTP/2's "h2c" mode.
|
// as used by WebSockets and HTTP/2's "h2c" mode.
|
||||||
Body io.ReadCloser
|
Body io.ReadCloser
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user