HttpMethodTransformExtensions.WithTransformHttpMethodChange 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.
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