Sha256: 7cac477442979b11975af4925e124c360dee5ffed3f98b88c7021dca28db8622
Contents?: true
Size: 378 Bytes
Versions: 5
Compression:
Stored size: 378 Bytes
Contents
require 'tomograph' require 'esplanade/request' require 'esplanade/response' module Esplanade class Middleware def initialize(app, **params) @app = app @documentation = Tomograph::Tomogram.new(Esplanade.configuration.params.merge(params)) end def call(env) status, headers, body = @app.call(env) [status, headers, body] end end end
Version data entries
5 entries across 5 versions & 1 rubygems