Sha256: f883fdeadfe767ffdb1fc8f1f14edcb60069a25b4b8a3ed2e1680dee02ec453e
Contents?: true
Size: 312 Bytes
Versions: 121
Compression:
Stored size: 312 Bytes
Contents
require 'multi_json' module Acfs module Middleware # A middleware to automatically decode JSON responses. # class JsonDecoder < Base def response(response, nxt) response.data = ::MultiJson.load(response.body) if response.json? nxt.call response end end end end
Version data entries
121 entries across 121 versions & 1 rubygems