summaryrefslogtreecommitdiff
path: root/src/pkg/http/server.go
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+1183
2011-09-13Imported Upstream version 60Ondřej Surý1-1083/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-22/+49
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-5/+71
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-0/+105
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-87/+102
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-37/+99
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-7/+41
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-29/+43
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-211/+331
2010-06-16http: reply to Expect 100-continue requests automaticallyBrad Fitzpatrick1-0/+30
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-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-04-05http: fix documentation exampleRuss Cox1-6/+7
R=adg CC=golang-dev http://codereview.appspot.com/813043
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-20http: add Error helper functionAndrew Gerrand1-4/+7
R=r, rsc CC=golang-dev http://codereview.appspot.com/626042
2010-02-12http: clarify ServeHTTP returnRuss Cox1-0/+5
Fixes issue 580. R=adg CC=golang-dev http://codereview.appspot.com/207086
2009-12-151) Change default gofmt default settings forRobert Griesemer1-127/+127
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-13Created new Conn.Flush() public method so the fd pipeline can be drained ↵David Titarenco1-2/+10
arbitrarily by the user. Commented both flush methods so people know what they are looking at. This is a necessary fix for streaming and long polling HTTP services. Fixes issue 93. R=r, rsc, david.titarenco http://codereview.appspot.com/154099 Committer: Russ Cox <rsc@golang.org>
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-4/+4
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-44/+44
R=rsc, r http://go/go-review/1025029
2009-11-08a nagging inconsistency: capitalization ofRuss Cox1-3/+3
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-12/+4
- 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-11-02package net cleanupRuss Cox1-4/+6
added ReadFrom/WriteTo for packet protocols like UDP. simplified the net.Conn interface. added new net.PacketConn interface for packet protocols. implemented proper UDP listener. cleaned up LocalAddr/RemoteAddr methods - cache in netFD. threw away various unused methods. an interface change: introduced net.Addr as a network address interface, to avoid conversion of UDP host:port to string and back for every ReadFrom/WriteTo sequence. another interface change: since signature of Listener.Accept was changing anyway, dropped the middle return value, because it is available as c.RemoteAddr(). (the Accept signature predates the existence of that method.) Dial and Listen still accept strings, but the proto-specific versions DialTCP, ListenUDP, etc. take net.Addr instead. because the generic Dial didn't change and because no one calls Accept directly (only indirectly via the http server), very little code will be affected by these interface changes. design comments welcome. R=p CC=go-dev, r http://go/go-review/1018017
2009-10-15Trivial documentation fix for func ListenAndServe().Stephen Ma1-0/+1
R=go-dev APPROVED=gri DELTA=1 (1 added, 0 deleted, 0 changed) OCL=35817 CL=35819
2009-10-15typoRob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=35743 CL=35762
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-50/+50
R=gri DELTA=1359 (138 added, 32 deleted, 1189 changed) OCL=35408 CL=35420
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-24Wrap kludge text in HTML comments so the text/html output will remain valid ↵David Symonds1-8/+15
HTML. Be more conservative: only mess with text/html and text/plain output. R=rsc APPROVED=rsc DELTA=20 (12 added, 5 deleted, 3 changed) OCL=33806 CL=33812
2009-08-12delete forward type declarationsRuss Cox1-2/+0
R=r DELTA=163 (1 added, 149 deleted, 13 changed) OCL=33106 CL=33111
2009-08-12convert non-low-level non-google pkg codeRuss Cox1-4/+0
to whole-package compilation. R=r OCL=33070 CL=33101
2009-06-09mv src/lib to src/pkgRob Pike1-0/+575
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102