mixinafFandoc::LinkResolver

afFandoc::LinkResolver

@Js

An interface for resolving URI links.

idPassThroughResolver

Source

const static LinkResolver idPassThroughResolver()

Returns a LinkResolver that returns the given url should it be prefixed with a #.

javascriptErrorResolver

Source

const static LinkResolver javascriptErrorResolver(Uri errorUrl := `/error`)

Returns a LinkResolver that returns an errorUrl should the given url have a scheme of javascript:.

passThroughResolver

Source

const static LinkResolver passThroughResolver()

Returns a basic LinkResolver that just returns the given url.

pathAbsPassThroughResolver

Source

const static LinkResolver pathAbsPassThroughResolver()

Returns a LinkResolver that returns the given url should it be path absolute.

resolve

Source

abstract Uri? resolve(DocElem elem, Str? scheme, Uri url)

Resolve the given url.

schemePassThroughResolver

Source

const static LinkResolver schemePassThroughResolver(Str[] schemes := "http https ftp data".split())

Returns a LinkResolver that returns the given url should it be qualified with a common scheme such as: http, https, ftp, data.