AngleSharp by AngleSharp

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

 RequesterExtensions

static class RequesterExtensions
Useful extensions for IRequester objects.
public static Task<IResponse> FetchAsync(this IResourceLoader loader, ResourceRequest request, CancellationToken cancel)

Performs a fetch from the given URI by using an asynchronous request.

public static Task<IResponse> FetchWithCorsAsync(this IResourceLoader loader, ResourceRequest request, CorsSetting setting, OriginBehavior behavior, CancellationToken cancel)

Performs a potentially CORS-enabled fetch from the given URI by using an asynchronous GET request. For more information see: http://www.w3.org/TR/html5/infrastructure.html#potentially-cors-enabled-fetch

public static MimeType GetContentType(this IResponse response)

Gets the content-type from the response's headers. The default type is derived from the file extension of the path, if any.

public static MimeType GetContentType(this IResponse response, string defaultType)

Gets the content-type from the response's headers.

public static Task<IResponse> LoadAsync(this IEnumerable<IRequester> requesters, IRequest request, IEventAggregator events, CancellationToken cancel)

Loads the given URI by using an asynchronous request.

public static Task<IResponse> SendAsync(this IDocumentLoader loader, DocumentRequest request, CancellationToken cancel)

Loads the given URI by using an asynchronous request with the given method and body.