Class Rack::File
In: lib/rack/file.rb
Parent: Object

Rack::File serves files below the root given, according to the path info of the Rack request.

Handlers can detect if bodies are a Rack::File, and use mechanisms like sendfile on the path.

Methods

_call   call   each   new  

Constants

F = ::File

Attributes

path  [RW] 
root  [RW] 

Public Class methods

Public Instance methods

[Validate]