summaryrefslogtreecommitdiff
path: root/src/pkg/http/client_test.go
AgeCommit message (Collapse)AuthorFilesLines
2010-06-30http: client_test nil pointer fixAndrew Gerrand1-1/+1
Fixes issue 893. R=rsc CC=golang-dev http://codereview.appspot.com/1687045
2010-06-08http: add Head function for making HTTP HEAD requestsAndrew Gerrand1-0/+10
R=rsc CC=golang-dev http://codereview.appspot.com/1581041
2009-12-151) Change default gofmt default settings forRobert Griesemer1-7/+7
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048
2009-12-02move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.Rob Pike1-2/+2
this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev http://codereview.appspot.com/163085
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-2/+2
R=rsc, r http://go/go-review/1025029
2009-09-17unused importsRuss Cox1-1/+0
R=r OCL=34731 CL=34731
2009-09-15more "declared and not used".Russ Cox1-1/+1
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-08-12convert non-low-level non-google pkg codeRuss Cox1-1/+0
to whole-package compilation. R=r OCL=33070 CL=33101
2009-06-25Change os.Error convention:Russ Cox1-2/+1
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-24style police: parens in if, for, switch, rangeRuss Cox1-5/+2
R=r DELTA=32 (0 added, 3 deleted, 29 changed) OCL=30718 CL=30725
2009-06-22introduce os.EOF and io.ErrUnexpectedEOF.Russ Cox1-5/+1
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-11Switch http client_test to use google.com/robots.txt to avoid redirect loop.David Symonds1-5/+5
www.google.com seems to be redirecting requests in an infinite loop. I haven't tracked down whether it's their code or this code that is causing it. This is just a quick fix so that this test passes. APPROVED=r DELTA=4 (0 added, 0 deleted, 4 changed) OCL=30178 CL=30210
2009-06-09Basic HTTP client.Steve Newman1-0/+40
R=rsc APPROVED=rsc DELTA=392 (386 added, 2 deleted, 4 changed) OCL=29963 CL=30107