Interface INavigationHandler
- Namespace
- AngleSharp.Browser
- Assembly
- AngleSharp.dll
Defines a handler for navigation requests.
public interface INavigationHandler
- Extension Methods
Methods
NavigateAsync(DocumentRequest, CancellationToken)
Performs the navigation with respect to a given request.
Task<IDocument> NavigateAsync(DocumentRequest request, CancellationToken token)
Parameters
request
DocumentRequestThe navigation request.
token
CancellationTokenThe cancellation token.
Returns
SupportsProtocol(string)
Determines if the given protocol is supported by the current handler.
bool SupportsProtocol(string protocol)
Parameters
protocol
stringThe protocol of the navigation target.
Returns
- bool
True if the protocol is supported, otherwise false.