Skip to content
Docs Try Aspire

YarpRoute.withTransformHttpMethodChange

Method
📦 Aspire.Hosting.Yarp v13.2.0-preview.1.26159.1
interface YarpRoute {
// ... omitted for brevity
withTransformHttpMethodChange(
fromHttpMethod: string,
toHttpMethod: string): YarpRoute;
}

Signature

method withTransformHttpMethodChange
Adds the transform that will replace the HTTP method if it matches.
withTransformHttpMethodChange(
fromHttpMethod: string,
toHttpMethod: string): YarpRoute
fromHttpMethod string
toHttpMethod string
YarpRoute

Defined on

This method is defined on the following type: