Skip to content
Docs Try Aspire

HttpMethodTransformExtensions Methods

Class Methods 1 member
Extensions for modifying the request method.
WithTransformHttpMethodChange(YarpRoute, string, string) Section titled WithTransformHttpMethodChange(YarpRoute, string, string) extension YarpRoute
Adds the transform that will replace the HTTP method if it matches.
public static class HttpMethodTransformExtensions
{
public static YarpRoute WithTransformHttpMethodChange(
this YarpRoute route,
string fromHttpMethod,
string toHttpMethod)
{
// ...
}
}
route YarpRoute
fromHttpMethod string
toHttpMethod string