Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTransformCopyResponseHeaders

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpRoute) WithTransformCopyResponseHeaders(options ...*WithTransformCopyResponseHeadersOptions) YarpRoute

Signature

methodWithTransformCopyResponseHeaders
Adds the transform which will enable or suppress copying response headers to the client response.
WithTransformCopyResponseHeaders(options ...*WithTransformCopyResponseHeadersOptions) YarpRoute
options...*WithTransformCopyResponseHeadersOptionsOptional settings, described under Options.

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

Copy*bool
YarpRoute

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

Applies to

This method applies to the following types: