Table of Contents

Class InjectHtmlTagAction

Namespace
Fluxzy.Rules.Actions.HighLevelActions
Assembly
Fluxzy.Core.dll
[ActionMetadata("This action stream a response body and inject a text after the first specified html tag.This action can be used to inject a html code snippet after opening `<head>` tag in any traversing html page.", NonDesktopAction = true)]
public class InjectHtmlTagAction : Action
Inheritance
InjectHtmlTagAction
Inherited Members

Properties

ActionScope

public override FilterScope ActionScope { get; }

Property Value

FilterScope

DefaultDescription

public override string DefaultDescription { get; }

Property Value

string

Encoding

Encoding IANA name, if not specified, UTF8 will be used

public string? Encoding { get; set; }

Property Value

string

FileName

If FromFile is true, the file name to read from

public string? FileName { get; set; }

Property Value

string

FromFile

If true, the code snippet will be read from the file specified by FileName

public bool FromFile { get; set; }

Property Value

bool

HtmlContent

The html code snippet to be injected

public string? HtmlContent { get; set; }

Property Value

string

RestrictToHtml

When true, the substitution will be performed only if the response is text/html. Default value is true

public bool RestrictToHtml { get; set; }

Property Value

bool

Tag

Html tag name after which the injection will be performed

public string Tag { get; set; }

Property Value

string

Methods

GetExamples()

public override IEnumerable<ActionExample> GetExamples()

Returns

IEnumerable<ActionExample>

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