Sha256: f6d028476f738161ce64dde0be4679f972a5dc157fa957b33887278efa21f7cd
Contents?: true
Size: 477 Bytes
Versions: 16
Compression:
Stored size: 477 Bytes
Contents
require 'faraday' require 'json' module Ably module Rest module Middleware class FailIfUnsupportedMimeType < Faraday::Response::Middleware def on_complete(env) unless env.response_headers['Ably-Middleware-Parsed'] == true raise Ably::Exceptions::InvalidResponseBody, "Content Type #{env.response_headers['Content-Type']} is not supported by this client library" end end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems