Class TransformBuilderContext
- Namespace
- Yarp.ReverseProxy.Transforms.Builder
- Assembly
- Yarp.ReverseProxy.dll
State used when building transforms for the given route.
public class TransformBuilderContext
- Inheritance
-
TransformBuilderContext
- Inherited Members
- Extension Methods
Constructors
TransformBuilderContext()
public TransformBuilderContext()
Properties
Cluster
The cluster config used by the route. This may be null if the route is not currently paired with a cluster.
public ClusterConfig? Cluster { get; init; }
Property Value
CopyRequestHeaders
Indicates if request headers should all be copied to the proxy request before transforms are applied.
public bool? CopyRequestHeaders { get; set; }
Property Value
- bool?
CopyResponseHeaders
Indicates if response headers should all be copied to the client response before transforms are applied.
public bool? CopyResponseHeaders { get; set; }
Property Value
- bool?
CopyResponseTrailers
Indicates if response trailers should all be copied to the client response before transforms are applied.
public bool? CopyResponseTrailers { get; set; }
Property Value
- bool?
RequestTransforms
Add request transforms here for the given route.
public IList<RequestTransform> RequestTransforms { get; }
Property Value
ResponseTrailersTransforms
Add response trailers transforms here for the given route.
public IList<ResponseTrailersTransform> ResponseTrailersTransforms { get; }
Property Value
ResponseTransforms
Add response transforms here for the given route.
public IList<ResponseTransform> ResponseTransforms { get; }
Property Value
Route
The route these transforms will be associated with.
public RouteConfig Route { get; init; }
Property Value
Services
Application services that can be used to construct transforms.
public IServiceProvider Services { get; init; }
Property Value
UseDefaultForwarders
Indicates if default x-fowarded-* transforms should be added to this route. Disable this if you do not want x-forwarded-* headers or have configured your own.
public bool? UseDefaultForwarders { get; set; }
Property Value
- bool?