Class HttpMethodTransformExtensions
Extensions for modifying the request method.
Inheritance
System.Object
HttpMethodTransformExtensions
Namespace: Yarp.ReverseProxy.Transforms
Assembly: Yarp.ReverseProxy.dll
Syntax
public static class HttpMethodTransformExtensions : object
Methods
| Improve this Doc View SourceAddHttpMethodChange(TransformBuilderContext, String, String)
Adds the transform that will replace the HTTP method if it matches.
Declaration
public static TransformBuilderContext AddHttpMethodChange(this TransformBuilderContext context, string fromHttpMethod, string toHttpMethod)
Parameters
Type | Name | Description |
---|---|---|
TransformBuilderContext | context | |
System.String | fromHttpMethod | |
System.String | toHttpMethod |
Returns
Type | Description |
---|---|
TransformBuilderContext |
WithTransformHttpMethodChange(RouteConfig, String, String)
Clones the route and adds the transform that will replace the HTTP method if it matches.
Declaration
public static RouteConfig WithTransformHttpMethodChange(this RouteConfig route, string fromHttpMethod, string toHttpMethod)
Parameters
Type | Name | Description |
---|---|---|
RouteConfig | route | |
System.String | fromHttpMethod | |
System.String | toHttpMethod |
Returns
Type | Description |
---|---|
RouteConfig |