AngleSharp by Florian Rappl

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

 RequesterExtensions

static class RequesterExtensions
Useful extensions for IRequester objects.
public static Task<IResponse> LoadAsync(this IRequester requester, Url url)

Loads the given URI by using an asynchronous GET request.

public static Task<IResponse> LoadAsync(this IRequester requester, Url url, CancellationToken cancel)

Loads the given URI by using an asynchronous GET request.

public static Task<IResponse> LoadWithCorsAsync(this IRequester requester, Url url, CorsSetting cors, string origin, OriginBehavior defaultBehavior)

Performs a potentially CORS-enabled fetch from the given URI by using an asynchronous GET request.

public static Task<IResponse> LoadWithCorsAsync(this IRequester requester, Url url, CorsSetting cors, string origin, OriginBehavior defaultBehavior, CancellationToken cancel)

Performs a potentially CORS-enabled fetch from the given URI by using an asynchronous GET request.

public static Task<IResponse> RequestAsync(this IRequester requester, IRequest request)

Performs an asynchronous http request with the given options without taking a custom cancellation token.

public static Task<IResponse> SendAsync(this IRequester requester, Url url, Stream content = null, string mimeType = null, HttpMethod method = 1)

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

public static Task<IResponse> SendAsync(this IRequester requester, Url url, Stream content, string mimeType, HttpMethod method, CancellationToken cancel)

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