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