Sha256: 12f93dac3a6839e1e3023e83dd56d1fb899569ea2e4eec2e1905e4d390e90971
Contents?: true
Size: 305 Bytes
Versions: 60
Compression:
Stored size: 305 Bytes
Contents
class Rack::App::Middlewares::HeaderSetter def initialize(app, headers) @app = app @headers = headers.freeze end def call(env) status, headers, body = @app.call(env) @headers.each do |header, value| headers[header] ||= value end [status, headers, body] end end
Version data entries
60 entries across 60 versions & 2 rubygems