C# Class Gallatin.Filter.HtmlBodyFilter

Inheritance: IResponseFilter
Afficher le fichier Open project: williamoneill/Gallatin

Méthodes publiques

Méthode Description
EvaluateFilter ( IHttpResponse response, string connectionId, Func &bodyAvailableCallback ) : string

Evaluates the HTML body for undesireable keywords

Private Methods

Méthode Description
ApplyRegexFiltering ( string htmlBody ) : byte[]
CensorWord ( string word ) : string
FindRawHtmlText ( string body ) : string
FindRawHtmlTextOld ( string body ) : string
HtmlBodyFilter ( ISettingsFileLoader loader, ILogger logger ) : System
ParseBody ( IHttpResponse response, string connectionId, byte body ) : byte[]

Method Details

EvaluateFilter() public méthode

Evaluates the HTML body for undesireable keywords
public EvaluateFilter ( IHttpResponse response, string connectionId, Func &bodyAvailableCallback ) : string
response IHttpResponse HTTP resonse
connectionId string Client connetion ID
bodyAvailableCallback Func Callback to invoke when the HTML body is available, or null if the reponse is not HTML
Résultat string