AngleSharp by AngleSharp

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

 BaseLoader

public abstract class BaseLoader : ILoader
Represents the base class for all loaders.
public int MaxRedirects { get; protected set; }

Gets the maximum number of redirects. By default this is 50.

public BaseLoader(IBrowsingContext context, Predicate<IRequest> filter)

Creates a new resource loader.

protected static Request CreateNewRequest(IRequest request, IResponse response)

Creates a new request based on the existing request and given response.

protected virtual void Add(IDownload download)

Adds the download to the active downloads.

protected virtual IDownload DownloadAsync(Request request, INode originator)

Starts downloading the request.

protected virtual string GetCookie(Url url)

Gets the cookie string for the given URL.

Gets the active downloads.

protected Task<IResponse> LoadAsync(Request request, CancellationToken cancel)

Loads the given URI by using an asynchronous request.

protected virtual void Remove(IDownload download)

Removes the download from the active downloads.

protected virtual void SetCookie(Url url, string value)

Sets the cookie string for the given URL.