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
DefaultDescription
public override string DefaultDescription { get; }
Property Value
Encoding
Encoding IANA name, if not specified, UTF8 will be used
public string? Encoding { get; set; }
Property Value
FileName
If FromFile is true, the file name to read from
public string? FileName { get; set; }
Property Value
FromFile
If true, the code snippet will be read from the file specified by FileName
public bool FromFile { get; set; }
Property Value
HtmlContent
The html code snippet to be injected
public string? HtmlContent { get; set; }
Property Value
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
Tag
Html tag name after which the injection will be performed
public string Tag { get; set; }
Property Value
Methods
GetExamples()
public override IEnumerable<ActionExample> GetExamples()
Returns
InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)
public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)
Parameters
context
ExchangeContextexchange
Exchangeconnection
Connectionscope
FilterScopebreakPointManager
BreakPointManager