ClassHostList
The HostList allows fast determination of whether a given host is in the list. It supports leading wildcards (e.g. *.foo.com), and the special tokens <local> <nonlocal> and <loopback>. Note: List is not threadsafe; instead of updating it, construct a new one.
Definition
Namespace:Fiddler
Assembly:FiddlerCore.dll
Syntax:
public class HostList
Inheritance: objectHostList
Inherited Members
Constructors
HostList(string)
Create a hostlist and assign it an initial set of sites
Declaration
public HostList(string sInitialList)
Parameters
sInitialList
List of hostnames, including leading wildcards, and optional port specifier. Special tokens are *, <local>, <nonlocal>, and <loopback>.
Methods
AssignFromString(string)
Clear the List and assign the new string as the contents of the list.
AssignFromString(string, out string)
Clear the list and assign the new string as the contents of the list.
Declaration
public bool AssignFromString(string sIn, out string sErrors)
Parameters
sIn
List of hostnames, including leading wildcards, and optional port specifier. Special tokens are *, <local>, <nonlocal>, and <loopback>.
sErrors
Outparam string containing list of parsing errors
Returns
TRUE if the list was constructed without errors
ContainsHost(string)
Determine if a given Host is in the list
ContainsHost(string, int)
Determine if a given Host:Port pair matches an entry in the list
ContainsHostname(string)
Determine if a given Hostname is in the list
ToString()
Return the current list of rules as a string
Declaration
public override string ToString()
Returns
String containing current rules, using "; " as a delimiter between entries
Overrides