Dela via


ResponseTrailersTransform Class

Definition

Transforms for response trailers.

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

Constructors

ResponseTrailersTransform()

Methods

ApplyAsync(ResponseTrailersTransformContext)

Transforms the given response trailers. The trailers will have (optionally) already been copied to the HttpResponse and any changes should be made there.

SetHeader(ResponseTrailersTransformContext, String, StringValues)

Sets the given trailer on the HttpResponse.

TakeHeader(ResponseTrailersTransformContext, String)

Removes and returns the current trailer value by first checking the HttpResponse and falling back to the value from HttpResponseMessage only if HeadersCopied is not set. This ordering allows multiple transforms to mutate the same header.

Applies to