Sha256: 1bca0d7b50d338345534d0d961cf9e37d1364eea9deb643d6df0c7b07b72e6e9
Contents?: true
Size: 563 Bytes
Versions: 5
Compression:
Stored size: 563 Bytes
Contents
module FlexCommerceApi module JsonApiClientExtension # # # @!visibility private # This class is used internally to save the request body as it # gets replaced by the response body. # The result can then be evaluated by an exception handler to show # the request and response to the developer. class SaveRequestBodyMiddleware < ::Faraday::Middleware # # Saves the request body in env[:request_body] # def call(env) env[:request_body] = env[:body] @app.call(env) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems