HttpContextFeaturesExtensions.ReassignProxyRequest 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.
Overloads
ReassignProxyRequest(HttpContext, ClusterState) |
Replaces the assigned cluster and destinations in IReverseProxyFeature with the new ClusterState, causing the request to be sent to the new cluster instead. |
ReassignProxyRequest(HttpContext, RouteModel, ClusterState) |
Replaces the assigned route, cluster, and destinations in IReverseProxyFeature with the new RouteModel and new ClusterState, causing the request to be sent using the new route to the new cluster. |
ReassignProxyRequest(HttpContext, ClusterState)
Replaces the assigned cluster and destinations in IReverseProxyFeature with the new ClusterState, causing the request to be sent to the new cluster instead.
public static void ReassignProxyRequest (this Microsoft.AspNetCore.Http.HttpContext context, Yarp.ReverseProxy.Model.ClusterState cluster);
static member ReassignProxyRequest : Microsoft.AspNetCore.Http.HttpContext * Yarp.ReverseProxy.Model.ClusterState -> unit
<Extension()>
Public Sub ReassignProxyRequest (context As HttpContext, cluster As ClusterState)
Parameters
- context
- HttpContext
- cluster
- ClusterState
Applies to
ReassignProxyRequest(HttpContext, RouteModel, ClusterState)
Replaces the assigned route, cluster, and destinations in IReverseProxyFeature with the new RouteModel and new ClusterState, causing the request to be sent using the new route to the new cluster.
public static void ReassignProxyRequest (this Microsoft.AspNetCore.Http.HttpContext context, Yarp.ReverseProxy.Model.RouteModel route, Yarp.ReverseProxy.Model.ClusterState cluster);
static member ReassignProxyRequest : Microsoft.AspNetCore.Http.HttpContext * Yarp.ReverseProxy.Model.RouteModel * Yarp.ReverseProxy.Model.ClusterState -> unit
<Extension()>
Public Sub ReassignProxyRequest (context As HttpContext, route As RouteModel, cluster As ClusterState)
Parameters
- context
- HttpContext
- route
- RouteModel
- cluster
- ClusterState