Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTransformResponseTrailersAllowed

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpRoute) WithTransformResponseTrailersAllowed(allowedHeaders []string) YarpRoute

Signature

methodWithTransformResponseTrailersAllowed
Adds the transform which will only copy the allowed response trailers. Other transforms that modify or append to existing trailers may be affected if not included in the allow list.
WithTransformResponseTrailersAllowed(allowedHeaders []string) YarpRoute
allowedHeaders[]string
YarpRoute

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

Applies to

This method applies to the following types: