Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTransformResponseTrailer

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpRoute) WithTransformResponseTrailer(
headerName string,
value string,
options ...*WithTransformResponseTrailerOptions,
) YarpRoute

Signature

methodWithTransformResponseTrailer
Adds the transform which will append or set the response trailer.
WithTransformResponseTrailer(
headerName string,
value string,
options ...*WithTransformResponseTrailerOptions,
) YarpRoute
headerNamestring
valuestring
options...*WithTransformResponseTrailerOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithTransformResponseTrailerOptions argument.

Append*bool
Condition*ResponseCondition
YarpRoute

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

Applies to

This method applies to the following types: