Skip to content
Docs Try Aspire

withTransformHttpMethodChange

Function
📦 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

Applies to

This function is an extension method on the following types: