Table of Contents

Class ResponseTransformContext

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

Transform state for use with ResponseTransform

public class ResponseTransformContext
Inheritance
ResponseTransformContext
Inherited Members

Constructors

ResponseTransformContext()

public ResponseTransformContext()

Properties

CancellationToken

A CancellationToken indicating that the request is being aborted.

public CancellationToken CancellationToken { get; set; }

Property Value

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.

public bool HeadersCopied { get; set; }

Property Value

bool

HttpContext

The current request context.

public HttpContext HttpContext { get; init; }

Property Value

HttpContext

ProxyResponse

The proxy response. This can be null if the destination did not respond.

public HttpResponseMessage? ProxyResponse { get; init; }

Property Value

HttpResponseMessage

SuppressResponseBody

Set to true if the proxy should exclude the body and trailing headers when proxying this response. Defaults to false.

public bool SuppressResponseBody { get; set; }

Property Value

bool