Sha256: 70d802bd0be5a7c4932ac9df679f2378529ca359aec220182317665937ab5414
Contents?: true
Size: 301 Bytes
Versions: 23
Compression:
Stored size: 301 Bytes
Contents
require 'rest-core/middleware' class RestCore::ErrorDetector def self.members; [:error_detector]; end include RestCore::Middleware def call env app.call(env){ |response| detector = error_detector(env) yield(fail(response, detector && detector.call(response))) } end end
Version data entries
23 entries across 23 versions & 1 rubygems