summaryrefslogtreecommitdiff
path: root/src/pkg/http/request.go
AgeCommit message (Collapse)AuthorFilesLines
2009-06-25http Request parsing, plus a convenient accessor.David Symonds1-24/+54
R=rsc APPROVED=rsc DELTA=95 (40 added, 14 deleted, 41 changed) OCL=30727 CL=30784
2009-06-25Change os.Error convention:Russ Cox1-62/+73
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
2009-06-24Change strings.Split, bytes.Split to take a maximum substring count argument.David Symonds1-3/+3
R=rsc APPROVED=r DELTA=131 (39 added, 10 deleted, 82 changed) OCL=30669 CL=30723
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