Table of Contents

Interface ITransformBuilder

Namespace
Yarp.ReverseProxy.Transforms.Builder
Assembly
Yarp.ReverseProxy.dll

Validates and builds request and response transforms for a given route.

public interface ITransformBuilder

Methods

Build(RouteConfig, ClusterConfig?)

Builds the transforms for the given route into executable rules.

HttpTransformer Build(RouteConfig route, ClusterConfig? cluster)

Parameters

route RouteConfig
cluster ClusterConfig

Returns

HttpTransformer

Create(Action<TransformBuilderContext>)

HttpTransformer Create(Action<TransformBuilderContext> action)

Parameters

action Action<TransformBuilderContext>

Returns

HttpTransformer

ValidateCluster(ClusterConfig)

Validates that any cluster data needed for transforms is valid.

IReadOnlyList<Exception> ValidateCluster(ClusterConfig cluster)

Parameters

cluster ClusterConfig

Returns

IReadOnlyList<Exception>

ValidateRoute(RouteConfig)

Validates that each transform for the given route is known and has the expected parameters. All transforms are validated so all errors can be reported.

IReadOnlyList<Exception> ValidateRoute(RouteConfig route)

Parameters

route RouteConfig

Returns

IReadOnlyList<Exception>