ResponseTransform Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |