aboutsummaryrefslogtreecommitdiff
path: root/src/lib/http/server.go
AgeCommit message (Collapse)Author
2009-06-09mv src/lib to src/pkgRob Pike
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-06-08Pad error text for browsers that are too smart.Russ Cox
404 page not found Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. Chrome would ignore this error page if this text weren't here. R=presotto APPROVED=p DELTA=50 (50 added, 0 deleted, 0 changed) OCL=30056 CL=30061
2009-05-18move ShortWrite error into io so that other packages can use it.Russ Cox
R=r DELTA=15 (7 added, 1 deleted, 7 changed) OCL=28996 CL=28996
2009-05-12Allow http.Redirect to do both temporary (307) and permanent (301) redirects.David Symonds
This also adds a missing 'return' when a malformed URL is passed to it. R=rsc APPROVED=rsc DELTA=30 (13 added, 2 deleted, 15 changed) OCL=28598 CL=28710
2009-05-08implications of stricter type equality:Russ Cox
if both types are named, they must be the same type (arising from the same declaration). R=r,gri DELTA=44 (21 added, 4 deleted, 19 changed) OCL=28436 CL=28577
2009-05-08embeddability: change bufio.BufRead to bufio.Reader etc.Rob Pike
R=rsc DELTA=112 (0 added, 4 deleted, 108 changed) OCL=28537 CL=28543
2009-05-08Name change to improve embeddability:Rob Pike
io.Read->io.Reader io.Write,Close,etc.->io.Writer,Closer etc. R=rsc DELTA=190 (0 added, 0 deleted, 190 changed) OCL=28525 CL=28535
2009-04-27Fix the chunked encoding - terminate the chunk with CRLF.Stephen Ma
R=rsc APPROVED=r DELTA=11 (10 added, 0 deleted, 1 changed) OCL=27723 CL=27879
2009-04-17Step 1 of the Big Error Shift: make os.Error an interface and replace ↵Rob Pike
*os.Errors with os.Errors. lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586
2009-04-15make Location translate relative path to absoluteRuss Cox
(HTTP requires absolute in protocol). add URL tests R=r DELTA=243 (242 added, 0 deleted, 1 changed) OCL=27472 CL=27523
2009-04-14http additionsRuss Cox
file system server add NotFound, Redirect functions method on a string R=r DELTA=212 (199 added, 4 deleted, 9 changed) OCL=27467 CL=27471
2009-04-07add path.Clean and other utilities.Russ Cox
use path.Clean in web server to sanitize URLs. http://triv/go/../../../etc/passwd no longer serves the password file. it redirects to http://triv/etc/passwd which then gets a 404. R=r DELTA=288 (286 added, 0 deleted, 2 changed) OCL=27142 CL=27152
2009-03-11Rename os.FD to os.File.Russ Cox
Make Fstat, Readdirnames, and Readdir methods on os.File. R=r DELTA=281 (79 added, 3 deleted, 199 changed) OCL=25891 CL=26130
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-02-13convert composite literals from { } to ( ).Russ Cox
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-02-05take advantage of methods on funcsRuss Cox
R=r DELTA=14 (0 added, 13 deleted, 1 changed) OCL=24458 CL=24470
2009-02-03bufio:Russ Cox
* avoid large copies * NewBufRead, NewBufWrite never fail * add BufReadWrite io: * add io.Close http, google/net/rpc: * add, use http.Conn.Hijack R=r DELTA=416 (202 added, 123 deleted, 91 changed) OCL=24153 CL=24238
2009-02-02flesh out http server.Russ Cox
convert to uppercase names. R=r DELTA=613 (460 added, 61 deleted, 92 changed) OCL=24139 CL=24145
2009-01-30update go code tree to new func rules.Russ Cox
R=r DELTA=367 (111 added, 59 deleted, 197 changed) OCL=23957 CL=23960
2009-01-20delete exportRuss Cox
TBR=r OCL=23121 CL=23127
2009-01-16casify httpRuss Cox
R=r DELTA=33 (0 added, 0 deleted, 33 changed) OCL=22947 CL=22949
2009-01-15convert strconvRuss Cox
R=r DELTA=568 (0 added, 9 deleted, 559 changed) OCL=22898 CL=22901
2008-11-17correctly rounded floating-point conversionsRuss Cox
in new package strconv. move atoi etc to strconv too. update fmt, etc to use strconv. R=r DELTA=2232 (1691 added, 424 deleted, 117 changed) OCL=19286 CL=19380
2008-10-08Fixes breakage caused by semicolon restriction.Cary Hull
R=rsc APPROVED=rsc DELTA=50 (4 added, 0 deleted, 46 changed) OCL=16707 CL=16725
2008-09-24early HTTP library and trivial serverRuss Cox
R=r OCL=15777 CL=15791