Skip to content
Docs Try Aspire
Docs Try

withTransformHttpMethodChange

Method
📦 Aspire.Hosting.Yarp v13.4.0
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

Applies to

This method applies to the following types: