Example #1
0
 public static IObservable <HttpFetch <ParsedHtml> > Html(this IHttpObservable query, IHtmlParser parser) =>
 query.Accept(MediaTypeNames.Text.Html)
 .ReadContent(async fetch =>
              parser.Parse(await fetch.Content.ReadAsStringAsync()
                           .DontContinueOnCapturedContext(),
                           fetch.RequestUrl));