Dela via


HttpMethodTransformExtensions.WithTransformHttpMethodChange Method

Definition

Clones the route and adds the transform that will replace the HTTP method if it matches.

public static Yarp.ReverseProxy.Configuration.RouteConfig WithTransformHttpMethodChange (this Yarp.ReverseProxy.Configuration.RouteConfig route, string fromHttpMethod, string toHttpMethod);
static member WithTransformHttpMethodChange : Yarp.ReverseProxy.Configuration.RouteConfig * string * string -> Yarp.ReverseProxy.Configuration.RouteConfig
<Extension()>
Public Function WithTransformHttpMethodChange (route As RouteConfig, fromHttpMethod As String, toHttpMethod As String) As RouteConfig

Parameters

route
RouteConfig
fromHttpMethod
String
toHttpMethod
String

Returns

Applies to