Interface IRequester
- Namespace
- AngleSharp.Io
- Assembly
- AngleSharp.dll
Defines the required methods any requester object must have.
public interface IRequester : IEventTarget
- Inherited Members
- Extension Methods
Methods
RequestAsync(Request, CancellationToken)
Performs an asynchronous request that can be cancelled.
Task<IResponse?> RequestAsync(Request request, CancellationToken cancel)
Parameters
request
RequestThe options to consider.
cancel
CancellationTokenThe token for cancelling the task.
Returns
SupportsProtocol(string)
Checks if the given protocol is supported.
bool SupportsProtocol(string protocol)
Parameters
protocol
stringThe protocol to check for, e.g. http.
Returns
- bool
True if the protocol is supported, otherwise false.
Events
Requested
Fired when a request is finished.
event DomEventHandler Requested
Event Type
Requesting
Fired when a request is starting.
event DomEventHandler Requesting