Sha256: 3ebbb7f4cf9108178d4b28cd82af246d22e74d3474d349c75d280e76b20189d2

Contents?: true

Size: 270 Bytes

Versions: 5

Compression:

Stored size: 270 Bytes

Contents

class MyLib
  class BadRequest < StandardError
  end

  class Middleware

    def initialize(app)
      @app = app
    end

    def call(env)
      status, headers, body = @app.call(env)
      headers['X-MyApp'] = 'true'
      [status, headers, body]
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grape-app-0.6.1 spec/scenario/lib/my_lib.rb
grape-app-0.6.0 spec/scenario/lib/my_lib.rb
grape-app-0.5.3 spec/scenario/lib/my_lib.rb
grape-app-0.5.1 spec/scenario/lib/my_lib.rb
grape-app-0.5.0 spec/scenario/lib/my_lib.rb