/// <summary> /// Constructs a new instance of UrlMatcher /// </summary> /// <param name="url">The url (relative or absolute) to match</param> public UrlMatcher(string url) { Uri uri; if (UriUtil.TryParse(url, UriKind.Absolute, out uri)) { url = uri.AbsoluteUri; } this.url = url; }