reverse-proxy
reverse-proxy copied to clipboard
Ocelot DelegatingHandlers Substitute in Yarp
trafficstars
What should we add or change to make your life better?
How to use Delegating Handlers in yarp like Ocelot
Why is this important to you?
See https://microsoft.github.io/reverse-proxy/articles/http-client-config.html#custom-iforwarderhttpclientfactory
For some customizations you can derive from the default ForwarderHttpClientFactory and override the methods that configure the client.
See https://microsoft.github.io/reverse-proxy/api/Yarp.ReverseProxy.Forwarder.ForwarderHttpClientFactory.html#Yarp_ReverseProxy_Forwarder_ForwarderHttpClientFactory_WrapHandler_Yarp_ReverseProxy_Forwarder_ForwarderHttpClientContext_HttpMessageHandler_
Triage: DelegatingHandlers are a common scenario worth mentioning directly in the doc for easy discovery.