IRequester
Defines the required methods any (http) requester object must have.
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace AngleSharp.Network
{
public interface IRequester
{
Dictionary<string, string> Headers { get; }
TimeSpan Timeout { get; set; }
IResponse Request(IRequest request);
Task<IResponse> RequestAsync(IRequest request);
Task<IResponse> RequestAsync(IRequest request, CancellationToken cancellationToken);
}
}