Sha256: 3905b2ed603391d230be0e97c83fa413d50d9e3b9a5e004eaa1f12fe8be8e603

Contents?: true

Size: 336 Bytes

Versions: 45

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

module Proscenium
  module Middleware
    # Serves static files from disk that end with .js or .css.
    class Static < Base
      def attempt
        benchmark :static do
          Rack::File.new(root, { 'X-Proscenium-Middleware' => 'static' }).call(@request.env)
        end
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
proscenium-0.6.0-arm64-darwin lib/proscenium/middleware/static.rb
proscenium-0.6.0-x86_64-darwin lib/proscenium/middleware/static.rb
proscenium-0.6.0-x86_64-linux lib/proscenium/middleware/static.rb
proscenium-0.5.1-arm64-darwin lib/proscenium/middleware/static.rb
proscenium-0.5.1-x86_64-darwin lib/proscenium/middleware/static.rb
proscenium-0.5.1-x86_64-linux lib/proscenium/middleware/static.rb
proscenium-0.5.0-arm64-darwin lib/proscenium/middleware/static.rb
proscenium-0.5.0-x86_64-darwin lib/proscenium/middleware/static.rb
proscenium-0.5.0-x86_64-linux lib/proscenium/middleware/static.rb
proscenium-0.4.2-arm64-darwin lib/proscenium/middleware/static.rb
proscenium-0.4.2-x86_64-darwin lib/proscenium/middleware/static.rb
proscenium-0.4.2-x86_64-linux lib/proscenium/middleware/static.rb
proscenium-0.4.1-arm64-darwin lib/proscenium/middleware/static.rb
proscenium-0.4.1-x86_64-darwin lib/proscenium/middleware/static.rb
proscenium-0.4.1-x86_64-linux lib/proscenium/middleware/static.rb
proscenium-0.4.0-arm64-darwin lib/proscenium/middleware/static.rb
proscenium-0.4.0-x86_64-darwin lib/proscenium/middleware/static.rb
proscenium-0.4.0-x86_64-linux lib/proscenium/middleware/static.rb
proscenium-0.3.0-arm64-darwin lib/proscenium/middleware/static.rb
proscenium-0.3.0-x86_64-darwin lib/proscenium/middleware/static.rb