Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ocelot DelegatingHandlers Substitute in Yarp #2303

Open
SpringHgui opened this issue Nov 7, 2023 · 1 comment
Open

Ocelot DelegatingHandlers Substitute in Yarp #2303

SpringHgui opened this issue Nov 7, 2023 · 1 comment
Labels
Type: Documentation Improvements or additions to documentation
Milestone

Comments

@SpringHgui
Copy link

SpringHgui commented Nov 7, 2023

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 SpringHgui added the Type: Idea This issue is a high-level idea for discussion. label Nov 7, 2023
@SpringHgui SpringHgui changed the title DelegatingHandlers Ocelot DelegatingHandlers Substitute in Yarp Nov 7, 2023
@Tratcher
Copy link
Member

Tratcher commented Nov 7, 2023

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.

@MihaZupan MihaZupan added Type: Documentation Improvements or additions to documentation and removed Type: Idea This issue is a high-level idea for discussion. labels Nov 28, 2023
@karelz karelz added this to the v.Next milestone Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants