Sha256: cac724ecc53c14c2ba28911ce87dd50af86ad63486d5bc0050ef1f0fc16bcb96
Contents?: true
Size: 310 Bytes
Versions: 17
Compression:
Stored size: 310 Bytes
Contents
require 'faraday_middleware/response_middleware' module FaradayMiddleware class ParseOj < ResponseMiddleware dependency 'oj' define_parser do |body| Oj.load(body, mode: :compat) unless body.strip.empty? end end end Faraday::Response.register_middleware(oj: FaradayMiddleware::ParseOj)
Version data entries
17 entries across 17 versions & 1 rubygems