The idea here is have a kind of plug and pipelines support. It would be something like faraday middlewares from ruby.
With the solution, we would be able to change the request data before it's sent, and change the response data after the request but before the mapping to a struct.
I did a quick research if we could use Plug structure for that, but in my opinion it does not support all response data or error handling we need.
The idea here is have a kind of plug and pipelines support. It would be something like
faraday middlewares
from ruby. With the solution, we would be able to change the request data before it's sent, and change the response data after the request but before the mapping to a struct. I did a quick research if we could use Plug structure for that, but in my opinion it does not support all response data or error handling we need.