Class TransformRequestBodyAction
public class TransformRequestBodyAction : Action
- Inheritance
-
TransformRequestBodyAction
- Inherited Members
Constructors
TransformRequestBodyAction(Func<TransformContext, IBodyReader, Task<BodyContent?>>)
public TransformRequestBodyAction(Func<TransformContext, IBodyReader, Task<BodyContent?>> transformFunction)
Parameters
transformFunctionFunc<TransformContext, IBodyReader, Task<BodyContent>>
Properties
ActionScope
public override FilterScope ActionScope { get; }
Property Value
DefaultDescription
public override string DefaultDescription { get; }
Property Value
InputEncoding
Encoding used to decode the response body, if null, taken from the response headers, if not found in the response headers, defaults to UTF8
public Encoding? InputEncoding { get; set; }
Property Value
TransformFunction
Function that takes the transform context and the original content as a string and returns the new content as a string
public Func<TransformContext, IBodyReader, Task<BodyContent?>> TransformFunction { get; }
Property Value
Methods
InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)
public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)
Parameters
contextExchangeContextexchangeExchangeconnectionConnectionscopeFilterScopebreakPointManagerBreakPointManager