Dela via


RequestTransformContext Class

Definition

Transform state for use with RequestTransform

public class RequestTransformContext
type RequestTransformContext = class
Public Class RequestTransformContext
Inheritance
RequestTransformContext

Constructors

RequestTransformContext()

Properties

CancellationToken

A CancellationToken indicating that the request is being aborted.

DestinationPrefix

The URI prefix for the proxy request. This includes the scheme and host and can optionally include a port and path base. The 'Path' and 'Query' properties will be appended to this after the transforms have run. Changing this value can have side effects on load balancing and health checks.

HeadersCopied

Gets or sets if the request headers have been copied from the HttpRequest to the HttpRequestMessage and HttpContent. Transforms use this when searching for the current value of a header they should operate on.

HttpContext

The current request context.

Path

The path to use for the proxy request.

ProxyRequest

The outgoing proxy request. All field are initialized except for the 'RequestUri' and optionally headers. If no value is provided then the 'RequestUri' will be initialized using the updated 'DestinationPrefix', 'Path', and 'Query' properties after the transforms have run. The headers will be copied later when applying header transforms.

Query

The query used for the proxy request.

Applies to