YarpRoute.WithTransformResponseTrailer
Method
type YarpRoute interface { // ... omitted for brevity WithTransformResponseTrailer( headerName string, value string, options ...*WithTransformResponseTrailerOptions, ) YarpRoute}Signature
method
WithTransformResponseTrailer Adds the transform which will append or set the response trailer.
WithTransformResponseTrailer( headerName string, value string, options ...*WithTransformResponseTrailerOptions,) YarpRouteParameters
headerName stringvaluestringoptions...*WithTransformResponseTrailerOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithTransformResponseTrailerOptions argument.
Append*boolCondition*ResponseCondition Returns
YarpRoute Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: