1
0
mirror of https://github.com/golang/go synced 2024-10-04 12:21:26 -06:00
go/src/pkg/http
Brad Fitzpatrick bba7396fbd strings: implement a faster byte->string Replacer
This implements a replacer for when all old strings are single
bytes, but new values are not.

BenchmarkHTMLEscapeNew   1000000   1090 ns/op
BenchmarkHTMLEscapeOld   1000000   2049 ns/op

R=rsc
CC=golang-dev
https://golang.org/cl/5176043
2011-10-03 15:19:04 -07:00
..
cgi http/cgi: clean up environment. 2011-09-16 10:36:54 -07:00
fcgi cleanup: gofmt -s -w src misc 2011-09-06 16:04:55 -07:00
httptest httptest: add NewUnstartedServer 2011-09-20 13:02:10 -07:00
pprof http/pprof: fix POST reading bug 2011-05-02 17:34:22 -04:00
spdy cleanup: gofmt -s -w src misc 2011-09-06 16:04:55 -07:00
testdata http: add test to serve content in index.html 2011-08-09 10:25:53 -07:00
chunked.go http: Alphabetize imports. 2011-09-13 09:38:26 -07:00
client_test.go url: new package 2011-08-17 13:36:02 +10:00
client.go http: document that Response.Body is non-nil 2011-09-15 14:09:53 -07:00
cookie_test.go time: make Weekday a method. 2011-09-12 11:47:55 -07:00
cookie.go strings: implement a faster byte->byte Replacer 2011-10-03 13:12:01 -07:00
dump.go http: prevent DumpRequest from adding implicit headers 2011-09-19 10:22:53 -07:00
export_test.go http: handler timeout support 2011-04-15 12:53:32 -07:00
filetransport_test.go http: add file protocol transport 2011-08-30 21:47:41 -07:00
filetransport.go http: add file protocol transport 2011-08-30 21:47:41 -07:00
fs_test.go url: new package 2011-08-17 13:36:02 +10:00
fs.go io: rename Copyn to CopyN. 2011-09-30 13:13:39 -07:00
header_test.go http: write Header keys with empty values 2011-06-20 14:36:03 -07:00
header.go strings: implement a faster byte->string Replacer 2011-10-03 15:19:04 -07:00
lex_test.go gofmt -s -w src misc 2010-10-22 10:06:33 -07:00
lex.go single argument panic 2010-03-30 10:34:57 -07:00
Makefile http: add file protocol transport 2011-08-30 21:47:41 -07:00
persist.go http: document that ServerConn and ClientConn are low-level 2011-06-29 18:23:38 -07:00
proxy_test.go http: add Transport.ProxySelector 2011-05-18 09:23:29 -07:00
range_test.go httptest: introduce TempServer, clean up tests 2011-03-05 13:51:35 -08:00
readrequest_test.go url: new package 2011-08-17 13:36:02 +10:00
request_test.go url: handle ; in ParseQuery 2011-09-06 12:24:24 -04:00
request.go http: prevent DumpRequest from adding implicit headers 2011-09-19 10:22:53 -07:00
requestwrite_test.go http: always include Content-Length header, even for 0 2011-09-19 11:41:09 -07:00
response_test.go http: add Location method to Response 2011-09-23 10:57:31 -07:00
response.go http: add Location method to Response 2011-09-23 10:57:31 -07:00
responsewrite_test.go http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
reverseproxy_test.go url: new package 2011-08-17 13:36:02 +10:00
reverseproxy.go url: new package 2011-08-17 13:36:02 +10:00
serve_test.go http: don't send a 400 Bad Request after a client shutdown 2011-09-28 09:27:11 -07:00
server.go strings: implement a faster byte->string Replacer 2011-10-03 15:19:04 -07:00
sniff_test.go http: add more MPEG-4 MIME types to sniffer, and disable MP4 sniffing. 2011-08-04 22:10:17 +10:00
sniff.go http: add more MPEG-4 MIME types to sniffer, and disable MP4 sniffing. 2011-08-04 22:10:17 +10:00
status.go http: revised http Handler interface 2010-09-29 14:30:12 +10:00
transfer.go http: always include Content-Length header, even for 0 2011-09-19 11:41:09 -07:00
transport_test.go io: rename Copyn to CopyN. 2011-09-30 13:13:39 -07:00
transport.go http: support setting Transport's TLS client config 2011-08-26 10:06:35 +04:00
triv.go go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00