class
WEBrick::HTTPServlet::DefaultFileHandler
ruby latest stable
- Superclass: AbstractServlet
Servlet for serving a single file. You probably want to use the FileHandler servlet instead as it handles directories and fancy indexes.
Example:
server.mount('/my_page.txt', WEBrick::HTTPServlet::DefaultFileHandler, '/path/to/my_page.txt')
This servlet handles If-Modified-Since and Range requests.
Files
- lib/webrick/httpservlet/filehandler.rb