summaryrefslogtreecommitdiff
path: root/src/pkg/http/client.go
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý1-290/+0
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+290
2011-09-13Imported Upstream version 60Ondřej Surý1-290/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-3/+11
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-88/+62
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-15/+44
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-60/+19
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-66/+150
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-1/+8
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-7/+63
2010-06-08http: add Head function for making HTTP HEAD requestsAndrew Gerrand1-1/+13
R=rsc CC=golang-dev http://codereview.appspot.com/1581041
2010-02-25strings: delete Runes, BytesRuss Cox1-1/+1
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-02-24http: fix handling of Close, use Close in http.PostRuss Cox1-0/+1
default to HTTP/1.1 R=petar-m CC=golang-dev http://codereview.appspot.com/224041
2010-02-22http: fix bug in PostPetar Maymounkov1-1/+3
R=rsc CC=golang-dev http://codereview.appspot.com/217059 Committer: Russ Cox <rsc@golang.org>
2010-01-25http: make Request.Body an io.ReadCloser, matching Response.Body.Petar Maymounkov1-1/+7
R=rsc, rsc1 CC=golang-dev http://codereview.appspot.com/194046 Committer: Russ Cox <rsc@golang.org>
2010-01-18Significant extension to http.Response, which now adheres to thePetar Maymounkov1-91/+4
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>
2009-12-15Add basic http authentication support.Ivan Krasin1-0/+11
Fixes issue 407. R=rsc, ajstarks CC=ushakov http://codereview.appspot.com/176076 Committer: Russ Cox <rsc@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer1-60/+60
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-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-1/+1
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-16/+16
R=rsc, r http://go/go-review/1025029
2009-11-08a nagging inconsistency: capitalization ofRuss Cox1-6/+6
HTML vs Html, URL vs Url, HTTP vs Http, current source is 6:1 in favor of the former, so change instances of the latter. R=r CC=go-dev http://go/go-review/1024026
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-3/+1
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-10-23publish Request.Write (rename from Request.write)Rob Pike1-1/+1
R=rsc CC=go-dev http://go/go-review/1015003
2009-10-19test and fix http redirect handlingRuss Cox1-0/+1
BUG=2197242 R=r DELTA=16 (16 added, 0 deleted, 0 changed) OCL=35878 CL=35882
2009-10-08more lgtm files from gofmtRuss Cox1-1/+1
R=gri OCL=35485 CL=35488
2009-10-06apply gofmt to go, gob, hash, http, image, io, json, logRuss Cox1-11/+11
R=gri DELTA=1359 (138 added, 32 deleted, 1189 changed) OCL=35408 CL=35420
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-26add io.LimitReader.Russ Cox1-0/+6
use it to limit data read from http.Request Body R=r DELTA=32 (8 added, 6 deleted, 18 changed) OCL=33899 CL=33916
2009-08-12convert non-low-level non-google pkg codeRuss Cox1-1/+0
to whole-package compilation. R=r OCL=33070 CL=33101
2009-07-15change HTTP access for RPC.Russ Cox1-32/+40
1. use CONNECT instead of GET. CONNECT has exactly the meaning we want; most of the time people connect to ip:port; we're connecting to /_goRPC_ 2. wait for a successful HTTP response before assuming we are connected to the RPC protocol. this allows better error reporting and also keeps the protocol alternating between speakers, so that the buffering in the HTTP request reader cannot accidentally eat some RPC bytes too. gotest sometimes hangs, but not in HTTP. gotest -match=Unknown hangs every few runs even in a clean client. R=r DELTA=117 (57 added, 44 deleted, 16 changed) OCL=31656 CL=31685
2009-07-06allow conversion to interface typeRuss Cox1-3/+1
when implicit assignment would have been okay. R=ken OCL=31225 CL=31227
2009-06-25Change os.Error convention:Russ Cox1-23/+25
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-5/+4
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-33/+24
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-09Basic HTTP client.Steve Newman1-0/+227
R=rsc APPROVED=rsc DELTA=392 (386 added, 2 deleted, 4 changed) OCL=29963 CL=30107