Table of Contents

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

context TransformBuilderContext
fromHttpMethod string
toHttpMethod string

Returns

TransformBuilderContext

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

route RouteConfig
fromHttpMethod string
toHttpMethod string

Returns

RouteConfig