ruby/lib/webrick
gotoyuzo 385edf1e5c * lib/webrick/config.rb:
add WEBrick::Config::FileHandler[:AcceptableLanguages].

* lib/webrick/httpservlet/filehandler.rb
  (WEBrick::HTTPServlet::FileHandler#set_filename): search files
  having suffix of language-name which Accept-Language header field
  includes if :AcceptableLanguages options is present.

* lib/webrick/httpservlet/filehandler.rb
  (WEBrick::HTTPServlet::FileHandler#get_servlet): new method to
  search servlet correspond to the suffix of filename.

* lib/webrick/httprequest.rb: add attributes access methods: accept,
  accept_charset, accept_encoding, accept_language, content_length
  and content_type.

* lib/webrick/httpresponse.rb: add attribute access methods:
  content_length, content_length=, content_type and content_type=.

* lib/webrick/httputils.rb (WEBrick::HTTPUtils.mime_types):
  use the second suffix to detect media type. (the first suffix
  may be a language name.)

* lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_qvalues):
  add method to parse Accept header field. it returns an Array of
  values sorted by the qvalues.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-12 12:26:39 +00:00
..
httpauth * lib/webrick: imported. 2003-07-23 16:51:36 +00:00
httpservlet * lib/webrick/config.rb: 2004-10-12 12:26:39 +00:00
accesslog.rb * lib/webrick/accesslog.rb (AccessLog::setup_params): use req.port 2003-09-08 09:52:34 +00:00
cgi.rb * lib/webrick/cgi.rb (WEBrick::CGI#start): should set REMOTE_USER 2004-09-16 09:14:27 +00:00
compat.rb * lib/webrick/ssl.rb: new file; SSL/TLS enhancement for GenericServer. 2003-08-19 06:00:36 +00:00
config.rb * lib/webrick/config.rb: 2004-10-12 12:26:39 +00:00
cookie.rb * lib/webrick: imported. 2003-07-23 16:51:36 +00:00
htmlutils.rb * lib/webrick: imported. 2003-07-23 16:51:36 +00:00
httpauth.rb * lib/webrick: imported. 2003-07-23 16:51:36 +00:00
httpproxy.rb * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect): 2004-08-21 16:16:18 +00:00
httprequest.rb * lib/webrick/config.rb: 2004-10-12 12:26:39 +00:00
httpresponse.rb * lib/webrick/config.rb: 2004-10-12 12:26:39 +00:00
https.rb * lib/webrick/cgi.rb (CGI): add support for mod_ruby. 2003-12-22 21:13:06 +00:00
httpserver.rb * lib/webrick/httpserver.rb (WEBrick::HTTPServer#virtual_host): 2004-03-21 13:17:24 +00:00
httpservlet.rb * lib/webrick: imported. 2003-07-23 16:51:36 +00:00
httpstatus.rb * lib/webrick: imported. 2003-07-23 16:51:36 +00:00
httputils.rb * lib/webrick/config.rb: 2004-10-12 12:26:39 +00:00
httpversion.rb * lib/webrick: imported. 2003-07-23 16:51:36 +00:00
log.rb * lib/webrick/log.rb (BasicLog#log): get rid of as ineffectual 2003-09-18 16:09:02 +00:00
server.rb * lib/webrick/config.rb (WEBrick::Config::General): add 2004-03-11 22:36:11 +00:00
ssl.rb * lib/webrick/ssl.rb: new option :SSLExtraChainCert. 2003-11-01 17:30:40 +00:00
utils.rb * lib/webrick/utils.rb (Utils::su): use setgid and setuid to 2003-09-28 17:50:52 +00:00
version.rb * lib/webrick: imported. 2003-07-23 16:51:36 +00:00