Table of Contents

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

fromMethod string

The method to match.

toMethod string

The method to it change to.

Methods

ApplyAsync(RequestTransformContext)

public override ValueTask ApplyAsync(RequestTransformContext context)

Parameters

context RequestTransformContext

Returns

ValueTask