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