Sha256: 22344896c0de2ab4d2770aff0903a3c4928b8acb6930b79e6b359cd07d476036

Contents?: true

Size: 171 Bytes

Versions: 2

Compression:

Stored size: 171 Bytes

Contents

# the simplest middleware
module RestCore
  class Bypass
    def initialize app
      @app = app
    end

    def call env, &k
      @app.call(env, &k)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rest-core-4.0.1 lib/rest-core/middleware/bypass.rb
rest-core-4.0.0 lib/rest-core/middleware/bypass.rb