aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/request.go
diff options
context:
space:
mode:
authorDavid Ndungu <dnjuguna@gmail.com>2019-07-27 13:56:22 -0700
committerEmmanuel Odeke <emm.odeke@gmail.com>2019-07-30 20:49:54 +0000
commit1ad64fafc889cb17041b03b10f8af30ae534dfeb (patch)
treedc1a8770f4823517da9286eaba52d9dcfc54810b /src/net/http/request.go
parent5f8d8161e66bda5fa9559648f7793e96885c89e3 (diff)
downloadgo-1ad64fafc889cb17041b03b10f8af30ae534dfeb.tar.gz
go-1ad64fafc889cb17041b03b10f8af30ae534dfeb.zip
net/http: improve Request.Form and Request.PostForm documentation
Request.PostForm gets populated with form data for PATCH, POST, or PUT http verbs. Change-Id: I33065aa78a8470c4e9490aac830aa6f5963c61cb Reviewed-on: https://go-review.googlesource.com/c/go/+/187821 Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Diffstat (limited to 'src/net/http/request.go')
-rw-r--r--src/net/http/request.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/http/request.go b/src/net/http/request.go
index fa63175c20..e53dde16b4 100644
--- a/src/net/http/request.go
+++ b/src/net/http/request.go
@@ -237,12 +237,12 @@ type Request struct {
Host string
// Form contains the parsed form data, including both the URL
- // field's query parameters and the POST or PUT form data.
+ // field's query parameters and the PATCH, POST, or PUT form data.
// This field is only available after ParseForm is called.
// The HTTP client ignores Form and uses Body instead.
Form url.Values
- // PostForm contains the parsed form data from POST, PATCH,
+ // PostForm contains the parsed form data from PATCH, POST
// or PUT body parameters.
//
// This field is only available after ParseForm is called.