Class TransformBuilderContextFuncExtensions
Extension methods for TransformBuilderContext.
Inheritance
System.Object
TransformBuilderContextFuncExtensions
Namespace: Yarp.ReverseProxy.Transforms
Assembly: Yarp.ReverseProxy.dll
Syntax
public static class TransformBuilderContextFuncExtensions : object
Methods
| Improve this Doc View SourceAddRequestTransform(TransformBuilderContext, Func<RequestTransformContext, ValueTask>)
Adds a transform Func that runs on each request for the given route.
Declaration
public static TransformBuilderContext AddRequestTransform(this TransformBuilderContext context, Func<RequestTransformContext, ValueTask> func)
Parameters
Type | Name | Description |
---|---|---|
TransformBuilderContext | context | |
Func<RequestTransformContext, ValueTask> | func |
Returns
Type | Description |
---|---|
TransformBuilderContext |
AddResponseTrailersTransform(TransformBuilderContext, Func<ResponseTrailersTransformContext, ValueTask>)
Adds a transform Func that runs on each response for the given route.
Declaration
public static TransformBuilderContext AddResponseTrailersTransform(this TransformBuilderContext context, Func<ResponseTrailersTransformContext, ValueTask> func)
Parameters
Type | Name | Description |
---|---|---|
TransformBuilderContext | context | |
Func<ResponseTrailersTransformContext, ValueTask> | func |
Returns
Type | Description |
---|---|
TransformBuilderContext |
AddResponseTransform(TransformBuilderContext, Func<ResponseTransformContext, ValueTask>)
Adds a transform Func that runs on each response for the given route.
Declaration
public static TransformBuilderContext AddResponseTransform(this TransformBuilderContext context, Func<ResponseTransformContext, ValueTask> func)
Parameters
Type | Name | Description |
---|---|---|
TransformBuilderContext | context | |
Func<ResponseTransformContext, ValueTask> | func |
Returns
Type | Description |
---|---|
TransformBuilderContext |