Is it possible to customize the message handler chain of the underlying HTTP client when using IDownstreamApi ? #3253
Unanswered
EnricoMassone
asked this question in
Q&A
Replies: 1 comment
-
|
By checking the Issues section, it seems this question was already asked in the past (see #1740). Based on my understanding, the proper solution to this problem is to call Can you please confirm that this is the proper way to customize the underlying |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the IDownstreamApi interface to call a downstream api from another API.
My use case is similar to the one showed here: the difference is that I'm not doing a call on behalf of the authenticated user, but instead on behalf of the application itself (client credentials flow for server to server communication).
Is it possible to customize the message handler chain of the underlying HTTP client when using this approach ? A typical example for this need is configuring resiliency strategies on the underlying HTTP client, to automatically retry over transient network errors.
When using the
IDownstreamApithe actual configuration of the underlying HTTP client is hidden by the abstraction. Is it possible to access that in an idiomatic way using the library ? Is there a method or property designed to do that in the library ?Beta Was this translation helpful? Give feedback.
All reactions