1
0
mirror of https://github.com/golang/go synced 2024-10-07 09:21:23 -06:00
go/src/pkg/net/http
Brad Fitzpatrick a6701f2699 net/http, net/url: permit Request-URI "*"
Also, implement a global OPTIONS * handler, like Apache.

Permit sending "*" requests to handlers, but not path-based
(ServeMux) handlers.  That means people can go out of their
way to support SSDP or SIP or whatever, but most users will be
unaffected.

See RFC 2616 Section 5.1.2 (Request-URI)
See RFC 2616 Section 9.2 (OPTIONS)

Fixes #3692

R=rsc
CC=golang-dev
https://golang.org/cl/6868095
2012-12-11 12:07:27 -05:00
..
cgi net/http/cgi: another attempt to fix windows tests 2012-11-20 16:24:12 +11:00
fcgi net/http/fcgi: don't mention threads in docs 2012-02-10 10:29:57 +11:00
httptest net/http/httptest: protect against port reuse 2012-11-25 15:23:20 -08:00
httputil net/http, net/http/httputil: fix TestChunkReaderAllocs failure when GOMAXPROCS > 1 2012-11-21 02:18:34 +08:00
pprof pprof: add goroutine blocking profiling 2012-10-06 12:56:04 +04:00
testdata
chunked_test.go net/http, net/http/httputil: fix TestChunkReaderAllocs failure when GOMAXPROCS > 1 2012-11-21 02:18:34 +08:00
chunked.go net/http: remove more garbage from chunk reading 2012-11-19 19:50:42 -08:00
client_test.go net/http: populate ContentLength in HEAD responses 2012-12-05 22:36:23 -08:00
client.go net/http/client.go: fix cookie handling on (*Client) Do() 2012-10-29 17:56:31 +01:00
cookie_test.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
cookie.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
doc.go net/http: fix reference to URL.RawPath in docs 2012-02-10 22:39:57 -02:00
example_test.go net/http: fix misplaced defer and example 2012-08-21 11:46:07 +10:00
export_test.go net/http: fix Transport races & deadlocks 2012-11-26 13:31:02 -08:00
filetransport_test.go net/http: make test remove temporary file and directory 2011-12-12 10:40:15 -08:00
filetransport.go
fs_test.go net/http: fix data race in test 2012-11-03 00:26:36 +04:00
fs.go net/http: add If-None-Match and If-Range support to ServeContent 2012-09-10 10:16:09 -07:00
header_test.go all: set GOMAXPROCS to 1 when counting mallocs 2012-12-01 00:38:01 +08:00
header.go net/http: added ParseTime function. 2012-08-31 18:10:16 -04:00
jar.go net/http/client.go: fix cookie handling on (*Client) Do() 2012-10-29 17:56:31 +01:00
lex_test.go net/http: lex cleanup 2012-04-23 10:26:10 -07:00
lex.go net/http: lex cleanup 2012-04-23 10:26:10 -07:00
proxy_test.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
range_test.go net/http: support multiple byte ranges in ServeContent 2012-06-29 07:44:04 -07:00
readrequest_test.go net/http, net/url: permit Request-URI "*" 2012-12-11 12:07:27 -05:00
request_test.go net/http: clarify that Request.Host may contain a port number 2012-12-04 07:09:01 -08:00
request.go net/http: clarify that Request.Host may contain a port number 2012-12-04 07:09:01 -08:00
requestwrite_test.go net/url: cleaned up URL interface (v2) 2012-01-17 00:49:05 -02:00
response_test.go net/http: populate ContentLength in HEAD responses 2012-12-05 22:36:23 -08:00
response.go net/http: populate ContentLength in HEAD responses 2012-12-05 22:36:23 -08:00
responsewrite_test.go
serve_test.go net/http, net/url: permit Request-URI "*" 2012-12-11 12:07:27 -05:00
server_test.go net/http: add (*ServeMux).Handler method 2012-08-31 12:16:31 -04:00
server.go net/http, net/url: permit Request-URI "*" 2012-12-11 12:07:27 -05:00
sniff_test.go net/http/httptest: make Server.Close wait for outstanding requests to finish 2012-02-29 12:18:26 -08:00
sniff.go net/http: document use of DetectContentType 2012-02-12 23:14:48 -05:00
status.go net/http: add overlooked 418 status code, per RFC 2324. 2012-02-24 11:55:31 +11:00
transfer_test.go archive/zip, crypto/tls, net/http: Fix print format errors. 2012-11-16 17:24:43 -08:00
transfer.go net/http: fix text for ErrBodyReadAfterClose 2012-12-10 01:42:10 -05:00
transport_test.go net/http: populate ContentLength in HEAD responses 2012-12-05 22:36:23 -08:00
transport.go net/http: populate ContentLength in HEAD responses 2012-12-05 22:36:23 -08:00
triv.go net/http: couple more triv.go modernizations 2012-03-15 10:06:25 -07:00