Skip to content
DocsTry Aspire
DocsTry

withTransformResponseTrailersAllowed

Method
📦 Aspire.Hosting.Yarp v13.4.0
interface YarpRoute {
// ... omitted for brevity
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
allowedHeadersstring[]
YarpRoute

Applies to

This method applies to the following types: