WithTransformResponseHeader
Method
func (YarpRoute) WithTransformResponseHeader( headerName string, value string, options ...*WithTransformResponseHeaderOptions,) YarpRouteSignature
method
WithTransformResponseHeader Adds the transform which will append or set the response header.
WithTransformResponseHeader( headerName string, value string, options ...*WithTransformResponseHeaderOptions,) YarpRouteParameters
headerName stringvaluestringoptions...*WithTransformResponseHeaderOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithTransformResponseHeaderOptions argument.
Append*boolCondition*ResponseCondition Returns
YarpRoute Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: