Class HttpMethodChangeTransform
- Namespace
- Yarp.ReverseProxy.Transforms
- Assembly
- Yarp.ReverseProxy.dll
Replaces the HTTP method if it matches.
public class HttpMethodChangeTransform : RequestTransform
- Inheritance
-
HttpMethodChangeTransform
- Inherited Members
Constructors
HttpMethodChangeTransform(string, string)
Creates a new transform.
public HttpMethodChangeTransform(string fromMethod, string toMethod)
Parameters
Methods
ApplyAsync(RequestTransformContext)
public override ValueTask ApplyAsync(RequestTransformContext context)
Parameters
context
RequestTransformContext