Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 361 Bytes

File metadata and controls

15 lines (13 loc) · 361 Bytes

Meziantou.Framework.Http

var links = LinkHeaderValue.Parse("</style.css>; rel=preload; as=style; fetchpriority="high"");
var link = links.GetLink("preload");
_ = link.GetParameter("as");
HttpResponseMessage response = ...;
foreach(var item in response.Headers.EnumerateLinkHeaders())
{
    Console.WriteLine($"{item.Rel}: {item.Url}");
}