summaryrefslogtreecommitdiff
path: root/src/pkg/http
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý59-13711/+0
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý59-0/+13711
2011-09-13Imported Upstream version 60Ondřej Surý57-14276/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý30-456/+982
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý38-593/+2846
2011-05-16Imported Upstream version 57.1upstream/57.1Ondřej Surý2-3/+33
2011-05-04Imported Upstream version 57upstream/57Ondřej Surý2-2/+32
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý30-130/+1989
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý34-537/+2290
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý29-594/+2019
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý6-48/+277
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý9-136/+554
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý22-611/+1554
2010-07-01strings and bytes.Split: make count of 0 mean 0, not infinite.Rob Pike2-3/+3
Use a count of -1 for infinity. Ditto for Replace. R=rsc CC=golang-dev http://codereview.appspot.com/1704044 Committer: Rob Pike <r@golang.org>
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-16http: reply to Expect 100-continue requests automaticallyBrad Fitzpatrick2-0/+35
This CL replaces my earlier http://codereview.appspot.com/1640044/show in which Continue handling was explicit. Instead, this CL makes it automatic. Reading from Body() is an implicit acknowledgement that the request headers were fine and the body is wanted. In that case, the 100 Continue response is written automatically when the request continues the "Expect: 100-continue" header. R=rsc, adg CC=golang-dev http://codereview.appspot.com/1610042 Committer: Russ Cox <rsc@golang.org>
2010-06-08misc cleanup: gofmt + &x -> x[0:] conversionRuss Cox1-4/+11
R=gri CC=golang-dev http://codereview.appspot.com/1620042
2010-06-08http: add Head function for making HTTP HEAD requestsAndrew Gerrand2-1/+23
R=rsc CC=golang-dev http://codereview.appspot.com/1581041
2010-06-06http: fix erroneous commentAndrew Gerrand1-4/+4
R=r CC=golang-dev http://codereview.appspot.com/1539042
2010-06-03http: handle status 304 correctlyRuss Cox1-0/+11
- cannot send body - should not send body-related headers R=r CC=golang-dev http://codereview.appspot.com/1499041
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-05-11http: prevent crash if remote server is not responding with "HTTP/"Robert Griesemer1-1/+1
Fixes issue 775. R=rsc CC=golang-dev http://codereview.appspot.com/1180042
2010-04-05http: fix documentation exampleRuss Cox1-6/+7
R=adg CC=golang-dev http://codereview.appspot.com/813043
2010-03-30simplify various code using new map index ruleRuss Cox3-47/+30
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-30single argument panicRuss Cox1-6/+2
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-29http: add HandleFunc as shortcut to Handle(path, HandlerFunc(func))Andrew Gerrand1-0/+11
R=rsc CC=golang-dev http://codereview.appspot.com/763042
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike1-1/+1
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-03-24runtime: malloc sampling, pprof interfaceRuss Cox2-0/+103
R=r CC=golang-dev http://codereview.appspot.com/719041
2010-03-20http: add Error helper functionAndrew Gerrand1-4/+7
R=r, rsc CC=golang-dev http://codereview.appspot.com/626042
2010-03-16http: change RawPath to mean raw path, not raw everything-after-scheme.Russ Cox4-70/+109
The new meaning is more useful for both websocket and http. R=r, petar-m, ukai CC=golang-dev, madari http://codereview.appspot.com/582043
2010-03-16http: add ParseQueryPetar Maymounkov2-5/+8
R=rsc CC=golang-dev http://codereview.appspot.com/238041 Committer: Russ Cox <rsc@golang.org>
2010-03-04gofmt: modified algorithm for alignment of multi-line composite/list entriesRobert Griesemer4-20/+20
- only manual changes are in src/pkg/go/printer/nodes.go - use a heuristic to determine "outliers" such that not entire composites are forced to align with them - improves several places that were not unligned before due too simple heuristic - unalignes some cases that contain "outliers" - gofmt -w src misc Fixes issue 644. R=rsc, r CC=golang-dev http://codereview.appspot.com/241041
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 Griesemer9-145/+145
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-25go/printer, gofmt: align comments in multi-line expression listsRobert Griesemer1-1/+1
- gofmt -w src misc - improves several lists and fixes minor degradation introduced with the fix for issue 628 - removed some dead code (stringList) R=rsc CC=golang-dev http://codereview.appspot.com/223058
2010-02-25strings: delete Runes, BytesRuss Cox4-8/+4
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 Cox5-11/+68
default to HTTP/1.1 R=petar-m CC=golang-dev http://codereview.appspot.com/224041
2010-02-22http: use RawURL in Request.WritePetar Maymounkov2-5/+8
R=rsc CC=golang-dev http://codereview.appspot.com/217066 Committer: Russ Cox <rsc@golang.org>
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-02-21http request URI should never be emptyMichael Hoisie1-1/+1
R=rsc, adg CC=golang-dev http://codereview.appspot.com/217071 Committer: Andrew Gerrand <adg@golang.org>
2010-02-19http: unified body transfer (read & write) logic in http.Request/Response.Petar Maymounkov6-348/+482
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-19http: add Pending method to ServerConn, ClientConnPetar Maymounkov1-1/+19
R=rsc CC=golang-dev http://codereview.appspot.com/216052 Committer: Russ Cox <rsc@golang.org>
2010-02-19http: add DumpRequest, DumpResponse, for debuggingPetar Maymounkov2-0/+77
R=rsc CC=golang-dev http://codereview.appspot.com/206050 Committer: Russ Cox <rsc@golang.org>
2010-02-18http: persistent connection objectsPetar Maymounkov2-0/+286
R=rsc CC=golang-dev http://codereview.appspot.com/203051 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-12http: clarify ServeHTTP returnRuss Cox1-0/+5
Fixes issue 580. R=adg CC=golang-dev http://codereview.appspot.com/207086
2010-02-10Added tests for http.Request/Response.Write()Petar Maymounkov2-0/+173
R=rsc CC=golang-dev http://codereview.appspot.com/199070 Committer: Russ Cox <rsc@golang.org>
2010-02-09mime: new package, use in httpMichael Hoisie1-12/+2
R=rsc CC=golang-dev http://codereview.appspot.com/186160 Committer: Russ Cox <rsc@golang.org>
2010-02-09http: protect io.WriteString in Request/Response.Write with error checking,Petar Maymounkov2-4/+13
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>