Class HttpMethodTransformExtensions
- Namespace
- Yarp.ReverseProxy.Transforms
- Assembly
- Yarp.ReverseProxy.dll
Extensions for modifying the request method.
public static class HttpMethodTransformExtensions
- Inheritance
-
HttpMethodTransformExtensions
- Inherited Members
Methods
AddHttpMethodChange(TransformBuilderContext, string, string)
Adds the transform that will replace the HTTP method if it matches.
public static TransformBuilderContext AddHttpMethodChange(this TransformBuilderContext context, string fromHttpMethod, string toHttpMethod)
Parameters
contextTransformBuilderContextfromHttpMethodstringtoHttpMethodstring
Returns
WithTransformHttpMethodChange(RouteConfig, string, string)
Clones the route and adds the transform that will replace the HTTP method if it matches.
public static RouteConfig WithTransformHttpMethodChange(this RouteConfig route, string fromHttpMethod, string toHttpMethod)
Parameters
routeRouteConfigfromHttpMethodstringtoHttpMethodstring