Table of Contents

Class TransformRequestBodyAction

Namespace
Fluxzy.Rules.Actions
Assembly
Fluxzy.Core.dll
public class TransformRequestBodyAction : Action
Inheritance
TransformRequestBodyAction
Inherited Members

Constructors

TransformRequestBodyAction(Func<TransformContext, IBodyReader, Task<BodyContent?>>)

public TransformRequestBodyAction(Func<TransformContext, IBodyReader, Task<BodyContent?>> transformFunction)

Parameters

transformFunction Func<TransformContext, IBodyReader, Task<BodyContent>>

Properties

ActionScope

public override FilterScope ActionScope { get; }

Property Value

FilterScope

DefaultDescription

public override string DefaultDescription { get; }

Property Value

string

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

Encoding

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

Func<TransformContext, IBodyReader, Task<BodyContent>>

Methods

InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)

public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)

Parameters

context ExchangeContext
exchange Exchange
connection Connection
scope FilterScope
breakPointManager BreakPointManager

Returns

ValueTask