Dela via


ResponseTransform Class

Definition

Transforms for responses.

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

Constructors

ResponseTransform()

Methods

ApplyAsync(ResponseTransformContext)

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

SetHeader(ResponseTransformContext, String, StringValues)

Sets the given header on the HttpResponse.

TakeHeader(ResponseTransformContext, String)

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

Applies to