AngleSharp by AngleSharp

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

 HttpRequester

public sealed class HttpRequester : IRequester
The default (ready-to-use) HTTP requester.
public IDictionary<string, string> Headers { get; }

Gets the used headers.

public TimeSpan Timeout { get; set; }

Gets or sets the timeout value.

public HttpRequester(string userAgent = null)

Constructs a default HTTP requester with the information presented in the info object.

public Task<IResponse> RequestAsync(IRequest request, CancellationToken cancellationToken)

Performs an asynchronous http request that can be cancelled.

public bool SupportsProtocol(string protocol)

Checks if the given protocol is supported.