C# Class AngleSharp.Io.Network.AboutRequester

Requester to perform about:// requests.
Inheritance: IRequester
显示文件 Open project: AngleSharp/AngleSharp.Io

Public Methods

Method 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

Method Description
GetAddress ( String data ) : String

Method Details

AboutRequester() public method

Creates a new about requester.
public AboutRequester ( ) : AngleSharp.Network
return AngleSharp.Network

GetRoute() public method

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

RequestAsync() public method

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.
return Task

SetRoute() public method

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.
return void

SupportsProtocol() public method

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