C# Class AngleSharp.Io.Network.AboutRequester

Requester to perform about:// requests.
Inheritance: IRequester
Afficher le fichier Open project: AngleSharp/AngleSharp.Io

Méthodes publiques

Méthode Description
AboutRequester ( ) : AngleSharp.Network

Creates a new about requester.

GetRoute ( String address ) : Func>

Gets the route for the given address, if any.

RequestAsync ( IRequest request, CancellationToken cancel ) : Task

Performs an asynchronous request that can be cancelled.

SetRoute ( String address, Func route ) : void

Sets the route for the given address.

SupportsProtocol ( String protocol ) : System.Boolean

Checks if the given protocol is supported.

Private Methods

Méthode Description
GetAddress ( String data ) : String

Method Details

AboutRequester() public méthode

Creates a new about requester.
public AboutRequester ( ) : AngleSharp.Network
Résultat AngleSharp.Network

GetRoute() public méthode

Gets the route for the given address, if any.
public GetRoute ( String address ) : Func>
address String The address of the route to obtain.
Résultat Func>

RequestAsync() public méthode

Performs an asynchronous request that can be cancelled.
public RequestAsync ( IRequest request, CancellationToken cancel ) : Task
request IRequest The options to consider.
cancel System.Threading.CancellationToken The token for cancelling the task.
Résultat Task

SetRoute() public méthode

Sets the route for the given address.
public SetRoute ( String address, Func route ) : void
address String The address of the route.
route Func The route to use.
Résultat void

SupportsProtocol() public méthode

Checks if the given protocol is supported.
public SupportsProtocol ( String protocol ) : System.Boolean
protocol String The protocol to check for, e.g. file.
Résultat System.Boolean