reverse-proxy icon indicating copy to clipboard operation
reverse-proxy copied to clipboard

Ocelot DelegatingHandlers Substitute in Yarp

Open SpringHgui opened this issue 2 years ago • 1 comments
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?

SpringHgui avatar Nov 07 '23 07:11 SpringHgui

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.

Tratcher avatar Nov 07 '23 16:11 Tratcher