Class ResponseTransformContext
Transform state for use with ResponseTransform
Inheritance
System.Object
ResponseTransformContext
Namespace: Yarp.ReverseProxy.Transforms
Assembly: Yarp.ReverseProxy.dll
Syntax
public class ResponseTransformContext : object
Properties
| Improve this Doc View SourceCancellationToken
A CancellationToken indicating that the request is being aborted.
Declaration
public CancellationToken CancellationToken { get; set; }
Property Value
Type | Description |
---|---|
CancellationToken |
HeadersCopied
Gets or sets if the response headers have been copied from the HttpResponseMessage and HttpContent to the HttpResponse. Transforms use this when searching for the current value of a header they should operate on.
Declaration
public bool HeadersCopied { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
HttpContext
The current request context.
Declaration
public HttpContext HttpContext { get; set; }
Property Value
Type | Description |
---|---|
HttpContext |
ProxyResponse
The proxy response. This can be null if the destination did not respond.
Declaration
public HttpResponseMessage? ProxyResponse { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<HttpResponseMessage> |
SuppressResponseBody
Set to true if the proxy should exclude the body and trailing headers when proxying this response. Defaults to false.
Declaration
public bool SuppressResponseBody { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |