Table of Contents

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 DocumentRequest

The navigation request.

token CancellationToken

The cancellation token.

Returns

Task<IDocument>

The task yielding a document representing the navigation result.

SupportsProtocol(string)

Determines if the given protocol is supported by the current handler.

bool SupportsProtocol(string protocol)

Parameters

protocol string

The protocol of the navigation target.

Returns

bool

True if the protocol is supported, otherwise false.