struct Extension

Library: Net Responsibility
Package: Core
Header: Blacklist.h

Description

The strength of the BlacklistMatch will also take the type of the URL in consideration. If it's an image or video it will be much stronger than if it is a script. This class holds different extensions and their associated types.

Variables

group

string group;

What kind of type it is. Image/Video etc.

re

SharedPtr < RegularExpression > re;

The regular expression to compare to the extension of the URL.

strength

int strength;

The strength of this specific extension.