Dela via


RequestTransform Class

Definition

The base class for request transforms.

public abstract class RequestTransform
type RequestTransform = class
Public MustInherit Class RequestTransform
Inheritance
RequestTransform
Derived

Constructors

RequestTransform()

Methods

AddHeader(RequestTransformContext, String, StringValues)

Adds the given header to the HttpRequestMessage or HttpContent where applicable.

ApplyAsync(RequestTransformContext)

Transforms any of the available fields before building the outgoing request.

RemoveHeader(RequestTransformContext, String)

Removes the given header from the HttpRequestMessage or HttpContent where applicable.

TakeHeader(RequestTransformContext, String)

Removes and returns the current header value by first checking the HttpRequestMessage, then the HttpContent, and falling back to the HttpContext only if HeadersCopied is not set. This ordering allows multiple transforms to mutate the same header.

Applies to