Sha256: 78b5d42d3786c911f07b2dd4884803316a5d9db141b625201bcc97db688ae963
Contents?: true
Size: 287 Bytes
Versions: 10
Compression:
Stored size: 287 Bytes
Contents
require 'rest-core/middleware/error_detector' class RestCore::ErrorDetectorHttp < RestCore::ErrorDetector def self.members; [:error_detector]; end include RestCore::Middleware def initialize app super(app, lambda{ |env| (env[RESPONSE_STATUS] || 200) / 100 >= 4 }) end end
Version data entries
10 entries across 10 versions & 1 rubygems