Sha256: 79cab44e0cb1f77278824499a2a04f8db030220ee811f92951b9ce8490c57149
Contents?: true
Size: 275 Bytes
Versions: 2
Compression:
Stored size: 275 Bytes
Contents
require 'rest-core/middleware/error_detector' module RestCore class ErrorDetectorHttp < RestCore::ErrorDetector def initialize app, detector=nil super(app, detector || lambda{ |env| (env[RESPONSE_STATUS] || 200) / 100 >= 4 }) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest-core-4.0.1 | lib/rest-core/middleware/error_detector_http.rb |
rest-core-4.0.0 | lib/rest-core/middleware/error_detector_http.rb |