class FlexCommerceApi::JsonApiClientExtension::SaveRequestBodyMiddleware
@!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.
Public Instance Methods
call(env)
click to toggle source
Saves the request body in env
# File lib/flex_commerce_api/json_api_client_extension/save_request_body_middleware.rb, line 14 def call(env) env[:request_body] = env[:body] @app.call(env) end