diff options
author | Petar Maymounkov <petarm@gmail.com> | 2010-02-19 08:38:40 -0800 |
---|---|---|
committer | Petar Maymounkov <petarm@gmail.com> | 2010-02-19 08:38:40 -0800 |
commit | 51b9e93fa73b57ad994672f64a1bbb1d31b75f87 (patch) | |
tree | be2b10f32bc04551f76145372893048d8a8da82d /src/pkg/exp/parser/parser.go | |
parent | f70c002907f03ed850ffa7d586acf5b0190c722f (diff) | |
download | golang-51b9e93fa73b57ad994672f64a1bbb1d31b75f87.tar.gz |
http: unified body transfer (read & write) logic in http.Request/Response.
Compliance issue addressed here: POST requests carrying form data are required
to use "identity" transfer encoding by common nginx and apache server configurations,
e.g. wordpress.com (and many others). So, Request needed to be able to send
non-chunked encodings.
Thus, Request is extended to support identity and chunked encodings, like
Response. Since the Read() and Write() logic are shared by both (and are
quite long), it is exported in a separate file transfer.go.
R=rsc
CC=golang-dev
http://codereview.appspot.com/217048
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg/exp/parser/parser.go')
0 files changed, 0 insertions, 0 deletions