Class HttpMethodChangeTransform
Replaces the HTTP method if it matches.
Inherited Members
Namespace: Yarp.ReverseProxy.Transforms
Assembly: Yarp.ReverseProxy.dll
Syntax
public class HttpMethodChangeTransform : RequestTransform
Constructors
| Improve this Doc View SourceHttpMethodChangeTransform(String, String)
Creates a new transform.
Declaration
public HttpMethodChangeTransform(string fromMethod, string toMethod)
Parameters
Type | Name | Description |
---|---|---|
System.String | fromMethod | The method to match. |
System.String | toMethod | The method to it change to. |
Methods
| Improve this Doc View SourceApplyAsync(RequestTransformContext)
Transforms any of the available fields before building the outgoing request.
Declaration
public override ValueTask ApplyAsync(RequestTransformContext context)
Parameters
Type | Name | Description |
---|---|---|
RequestTransformContext | context |
Returns
Type | Description |
---|---|
ValueTask |