ForwarderHttpClientFactory.CreateClient(ForwarderHttpClientContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and configures an HttpMessageInvoker instance that can be used for forwarding requests to an upstream server.
public System.Net.Http.HttpMessageInvoker CreateClient(Yarp.ReverseProxy.Forwarder.ForwarderHttpClientContext context);
abstract member CreateClient : Yarp.ReverseProxy.Forwarder.ForwarderHttpClientContext -> System.Net.Http.HttpMessageInvoker
override this.CreateClient : Yarp.ReverseProxy.Forwarder.ForwarderHttpClientContext -> System.Net.Http.HttpMessageInvoker
Public Function CreateClient (context As ForwarderHttpClientContext) As HttpMessageInvoker
Parameters
- context
- ForwarderHttpClientContext
An ForwarderHttpClientContext carrying old and new cluster configurations.