1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:55:01 -07:00

net/http: document Transport.ExpectContinueTimeout a bit more

Fixes #16003

Change-Id: I76a8da24b9944647ec40ef2ca4fc93c175ff5a25
Reviewed-on: https://go-review.googlesource.com/31723
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Brad Fitzpatrick 2016-10-22 06:39:12 -07:00
parent eb15cf16ae
commit ece4e23d9a

View File

@ -158,7 +158,9 @@ type Transport struct {
// ExpectContinueTimeout, if non-zero, specifies the amount of // ExpectContinueTimeout, if non-zero, specifies the amount of
// time to wait for a server's first response headers after fully // time to wait for a server's first response headers after fully
// writing the request headers if the request has an // writing the request headers if the request has an
// "Expect: 100-continue" header. Zero means no timeout. // "Expect: 100-continue" header. Zero means no timeout and
// causes the body to be sent immediately, without
// waiting for the server to approve.
// This time does not include the time to send the request header. // This time does not include the time to send the request header.
ExpectContinueTimeout time.Duration ExpectContinueTimeout time.Duration