Table of Contents

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 Request

The options to consider.

cancel CancellationToken

The token for cancelling the task.

Returns

Task<IResponse>

The task that will eventually give the response data.

SupportsProtocol(string)

Checks if the given protocol is supported.

bool SupportsProtocol(string protocol)

Parameters

protocol string

The 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

DomEventHandler

Requesting

Fired when a request is starting.

event DomEventHandler Requesting

Event Type

DomEventHandler