Sha256: 6f2d6d4d9caf82f30f58f20ab3a2ebe5c97f6ba826000049f7ae2174fdb8a151
Contents?: true
Size: 284 Bytes
Versions: 20
Compression:
Stored size: 284 Bytes
Contents
# encoding: utf-8 module Hyperdrive module Middleware class Accept def initialize(app) @app = app end def call(env) env['hyperdrive.accept'] = Rack::Accept::MediaType.new(env['HTTP_ACCEPT']) @app.call(env) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems