Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

YarpRoute.WithTransformHttpMethodChange

Method
📦 Aspire.Hosting.Yarp v17.0.0
type YarpRoute interface {
// ... omitted for brevity
WithTransformHttpMethodChange(
fromHttpMethod string,
toHttpMethod string,
) YarpRoute
}

Signature

methodWithTransformHttpMethodChange
Adds the transform that will replace the HTTP method if it matches.
WithTransformHttpMethodChange(
fromHttpMethod string,
toHttpMethod string,
) YarpRoute
fromHttpMethodstring
toHttpMethodstring
YarpRoute

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: