Sha256: 083ad9c82f771b7996d61d5dcd329f9398afff14867d80f5f8205e3b595d620e
Contents?: true
Size: 253 Bytes
Versions: 37
Compression:
Stored size: 253 Bytes
Contents
require 'rest-core/middleware/error_detector' class RestCore::ErrorDetectorHttp < RestCore::ErrorDetector def initialize app, detector=nil super(app, detector || lambda{ |env| (env[RESPONSE_STATUS] || 200) / 100 >= 4 }) end end
Version data entries
37 entries across 37 versions & 1 rubygems