Skip to content
DocsTry Aspire
DocsTry

HttpMethodTransformExtensions Methods

ClassMethods1 member
Extensions for modifying the request method.
WithTransformHttpMethodChange(YarpRoute, string, string)Section titled WithTransformHttpMethodChange(YarpRoute, string, string)extensionYarpRoute
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)
{
// ...
}
}
fromHttpMethodstring
toHttpMethodstring