summaryrefslogtreecommitdiff
path: root/src/pkg/http/request.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-10-23 14:19:47 -0700
committerRob Pike <r@golang.org>2009-10-23 14:19:47 -0700
commitc6ed9dc9d44e132f38a3bfa09a156c4e63570e14 (patch)
treea494c86cd9d31ad7313dab344f92a7648f462e3d /src/pkg/http/request.go
parentd435967c2d7f5c5079147fccc4a8c30254337405 (diff)
downloadgolang-c6ed9dc9d44e132f38a3bfa09a156c4e63570e14.tar.gz
publish Request.Write (rename from Request.write)
R=rsc CC=go-dev http://go/go-review/1015003
Diffstat (limited to 'src/pkg/http/request.go')
-rw-r--r--src/pkg/http/request.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go
index 5319c589c..71c93bb1c 100644
--- a/src/pkg/http/request.go
+++ b/src/pkg/http/request.go
@@ -125,7 +125,7 @@ func valueOrDefault(value, def string) string {
// TODO(rsc): Change default UserAgent before open-source release.
const defaultUserAgent = "http.Client"
-// Write an HTTP/1.1 request -- header and body -- in wire format.
+// Write writes an HTTP/1.1 request -- header and body -- in wire format.
// This method consults the following fields of req:
// Url
// Method (defaults to "GET")
@@ -135,7 +135,7 @@ const defaultUserAgent = "http.Client"
// Body
//
// If Body is present, "Transfer-Encoding: chunked" is forced as a header.
-func (req *Request) write(w io.Writer) os.Error {
+func (req *Request) Write(w io.Writer) os.Error {
uri := URLEscape(req.Url.Path);
if req.Url.RawQuery != "" {
uri += "?" + req.Url.RawQuery;