I'd like to add Tesla.Middleware.Logger to the client when making requests. Is that possible?
It doesn't look like ExForce.Client.Tesla.build_client/2 supports it:
|
def build_client(instance_url_or_map, opts \\ [headers: [{"user-agent", @default_user_agent}]]) |
I was also looking into whether I could add the Middleware to the client after I get it back, but I couldn't find a way to modify a Tesla.Client after it is built.
Thanks!
I'd like to add Tesla.Middleware.Logger to the
clientwhen making requests. Is that possible?It doesn't look like
ExForce.Client.Tesla.build_client/2supports it:ex_force/lib/ex_force/client/tesla/tesla.ex
Line 34 in 4181e26
I was also looking into whether I could add the Middleware to the client after I get it back, but I couldn't find a way to modify a
Tesla.Clientafter it is built.Thanks!