コード例 #1
0
        public static Href From(string value, bool strict = true)
        {
            var href = HttpLink.From(value, strict: false) ?? HttpResource.From(value, strict: false) as Href;

            ExpectNot(strict && href == null, "Failed to parse href: " + value);

            return(href);
        }
コード例 #2
0
 public HttpLink ToLink() => HttpLink.From(this);