summaryrefslogtreecommitdiff
path: root/src/pkg/http/request.go
AgeCommit message (Collapse)AuthorFilesLines
2009-06-23Fix http client handling of status messages with spaces (e.g. "HTTP/1.1 400 BadDavid Symonds1-9/+113
Request". Use chunked Transfer-Encoding for all POSTs. Implement chunked reading. Change http.Request.write to be HTTP/1.1 only. R=rsc APPROVED=rsc DELTA=178 (123 added, 26 deleted, 29 changed) OCL=30563 CL=30673
2009-06-22Don't prefix Url.Path with a slash in Request.write,David Symonds1-1/+5
because Url.Path already starts with one. Avoid crashing in Request.ParseForm if there is no body. R=rsc APPROVED=rsc DELTA=5 (4 added, 0 deleted, 1 changed) OCL=30552 CL=30607
2009-06-22introduce os.EOF and io.ErrUnexpectedEOF.Russ Cox1-2/+2
remove io.ErrEOF. rename io.FullRead to io.ReadFull, to match ReadAtLeast and ReadAll. remove io.FullReader, because it is now unused. R=r DELTA=295 (88 added, 105 deleted, 102 changed) OCL=30544 CL=30588
2009-06-19Add form body parsing to http.Request.David Symonds1-0/+48
better error handling throughout. R=r,rsc APPROVED=r DELTA=254 (201 added, 3 deleted, 50 changed) OCL=30515 CL=30545
2009-06-09Basic HTTP client.Steve Newman1-5/+53
R=rsc APPROVED=rsc DELTA=392 (386 added, 2 deleted, 4 changed) OCL=29963 CL=30107
2009-06-09mv src/lib to src/pkgRob Pike1-0/+413
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102