AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.5" />

 BrowsingContextExtensions

public static class BrowsingContextExtensions
A set of extensions for the browsing context.

The virtual response class.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, IResponse response, CancellationToken cancel)

Opens a new document created from the response asynchronously in the given context.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, DocumentRequest request, CancellationToken cancel)

Opens a new document loaded from the specified request asynchronously in the given context.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, Url url, CancellationToken cancel)

Opens a new document loaded from the provided url asynchronously in the given context.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, Action<VirtualResponse> request, CancellationToken cancel)

Opens a new document loaded from a virtual response that can be filled via the provided callback.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, Action<VirtualResponse> request)

Opens a new document loaded from a virtual response that can be filled via the provided callback without any ability to cancel it.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, Url url)

Opens a new document loaded from the provided url asynchronously in the given context without the ability to cancel it.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, string address)

Opens a new document loaded from the provided address asynchronously in the given context.

public static Task<IDocument> OpenNewAsync(this IBrowsingContext context, string url = null)

Opens a new document without any content in the given context.