Skip to content
Docs Try Aspire

ResponseTransformExtensions

Class static net10.0
📦 Aspire.Hosting.Yarp v13.1.2
Extensions for adding response header and trailer transforms.
namespace Aspire.Hosting.Yarp.Transforms;
public static class ResponseTransformExtensions
{
// ...
}
WithTransformCopyResponseHeaders(YarpRoute, bool)extension
Adds the transform which will enable or suppress copying response headers to the client response.
WithTransformCopyResponseTrailers(YarpRoute, bool)extension
Adds the transform which will enable or suppress copying response trailers to the client response.
WithTransformResponseHeader(YarpRoute, string, string, bool, ResponseCondition)extension
Adds the transform which will append or set the response header.
WithTransformResponseHeaderRemove(YarpRoute, string, ResponseCondition)extension
Adds the transform which will remove the response header.
WithTransformResponseHeadersAllowed(YarpRoute, string[])extension
Adds the transform which will only copy the allowed response headers. Other transforms that modify or append to existing headers may be affected if not included in the allow list.
WithTransformResponseTrailer(YarpRoute, string, string, bool, ResponseCondition)extension
Adds the transform which will append or set the response trailer.
WithTransformResponseTrailerRemove(YarpRoute, string, ResponseCondition)extension
Adds the transform which will remove the response trailer.
WithTransformResponseTrailersAllowed(YarpRoute, string[])extension
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.
View all methods