Sha256: 5af53a8abebc27993ebc80db5b980328892fb8d8a64cdf0547e84e1cfb72b679

Contents?: true

Size: 209 Bytes

Versions: 12

Compression:

Stored size: 209 Bytes

Contents

class AwesomeMiddleware
  def initialize(app)
    @app = app
  end

  def call(env)
    status, headers, response = @app.call(env)
    [status, headers.merge("X-Awesome" => "U R Awesome"), response]
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rack-api-1.1.0 spec/support/awesome_middleware.rb
rack-api-1.0.2 spec/support/awesome_middleware.rb
rack-api-1.0.1 spec/support/awesome_middleware.rb
rack-api-1.0.0 spec/support/awesome_middleware.rb
rack-api-0.3.1 spec/support/awesome_middleware.rb
rack-api-0.3.0 spec/support/awesome_middleware.rb
rack-api-0.2.2 spec/support/awesome_middleware.rb
rack-api-0.2.1 spec/support/awesome_middleware.rb
rack-api-0.2.0 spec/support/awesome_middleware.rb
rack-api-0.1.2 spec/support/awesome_middleware.rb
rack-api-0.1.1 spec/support/awesome_middleware.rb
rack-api-0.1.0 spec/support/awesome_middleware.rb