Sha256: 0548cc0b56877cc44ade91eab015404e9696c097fdb0b3c1c463bf44065bd811
Contents?: true
Size: 332 Bytes
Versions: 18
Compression:
Stored size: 332 Bytes
Contents
module JsonApiClient module Middleware class JsonRequest < Faraday::Middleware def call(environment) environment[:request_headers]["Content-Type"] = 'application/vnd.api+json' environment[:request_headers]["Accept"] = 'application/vnd.api+json' @app.call(environment) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems