Module: ServeThis
- Defined in:
- lib/serve-this.rb,
lib/serve-this/version.rb
Defined Under Namespace
Classes: App
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
Class Method Details
.from(root) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/serve-this.rb', line 7 def self.from(root) Rack::Builder.app do # ensure we use etags use ::Rack::ConditionalGet use ::Rack::ETag # we respond to HEAD requests use ::Rack::Head run ServeThis::App.new(root) end end |