Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTransformHttpMethodChange

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpRoute) 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().

Applies to

This method applies to the following types: