summaryrefslogtreecommitdiff
path: root/src/pkg/http/response.go
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+214
2011-09-13Imported Upstream version 60Ondřej Surý1-214/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-10/+6
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-39/+18
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-1/+7
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-56/+38
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-2/+6
2010-03-30simplify various code using new map index ruleRuss Cox1-9/+8
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-02gofmt: fix alignment of multi-line var declarationsRobert Griesemer1-2/+2
- gofmt -w src misc R=rsc, r CC=golang-dev http://codereview.appspot.com/223101
2010-03-03http: corrected comment for Response.GetHeader.Andrew Gerrand1-7/+6
Fixes issue 622. R=rsc CC=golang-dev http://codereview.appspot.com/224084
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer1-2/+2
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-24http: fix handling of Close, use Close in http.PostRuss Cox1-3/+7
default to HTTP/1.1 R=petar-m CC=golang-dev http://codereview.appspot.com/224041
2010-02-19http: unified body transfer (read & write) logic in http.Request/Response.Petar Maymounkov1-291/+18
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>
2010-02-18http: do not edit Response.ContentLength in Response.WritePetar Maymounkov1-6/+7
R=rsc CC=golang-dev http://codereview.appspot.com/207061 Committer: Russ Cox <rsc@golang.org>
2010-02-09http: protect io.WriteString in Request/Response.Write with error checking,Petar Maymounkov1-3/+9
since they were causing a silent program exit (too many EPIPE's). R=rsc CC=golang-dev http://codereview.appspot.com/204062 Committer: Russ Cox <rsc@golang.org>
2010-02-05http: sort header keys when writing Response or Request to wirePetar Maymounkov1-3/+21
R=rsc CC=golang-dev http://codereview.appspot.com/203050 Committer: Russ Cox <rsc@golang.org>
2010-01-28Cosmetic bug or compliance fixes in http.Response.Petar Maymounkov1-14/+16
(1) http.Response must close resp.Body after writing. (2) Case when resp.Body != nil and resp.ContentLength = 0 should not be treated as an error in Response.Write, because this is what ReadResponse often returns. (3) Changed body.th to body.hdr for readability. R=rsc CC=golang-dev http://codereview.appspot.com/194084 Committer: Russ Cox <rsc@golang.org>
2010-01-25http: make Request.Body an io.ReadCloser, matching Response.Body.Petar Maymounkov1-4/+4
R=rsc, rsc1 CC=golang-dev http://codereview.appspot.com/194046 Committer: Russ Cox <rsc@golang.org>
2010-01-19http: handle old HTTP/1.0 unchunked "read to EOF" bodies.Russ Cox1-10/+21
Was trying to interpret raw body as chunked body. Add test for ReadResponse. Fixes issue 544. R=r, petar-m CC=golang-dev, shadowice http://codereview.appspot.com/190068
2010-01-18Significant extension to http.Response, which now adheres to thePetar Maymounkov1-0/+480
usage pattern of http.Request and paves the way to persistent connection handling. R=rsc CC=golang-dev http://codereview.appspot.com/185043 Committer: Russ Cox <rsc@golang.org>