const mixinafColdFeet::UrlTransformer

afColdFeet::UrlTransformer

(Service) - ColdFeet's strategy for transforming URLs.

extractDigest

Source

abstract Str extractDigest(Uri coldFeetUrl)

Extracts and returns the digest embedded within the given ColdFeet URL.

Both should always start with a slash.

fromColdFeet

Source

abstract Uri fromColdFeet(Uri coldFeetUrl)

Converts the given ColdFeet URL to a local URL.

Both should always start with a slash.

isColdFeet

Source

abstract Bool isColdFeet(Uri localUrl)

Is the URL a recognisable ColdFeet URL?

The given URL will always start with a slash.

toColdFeet

Source

abstract Uri toColdFeet(Uri localUrl, Str digest)

Transforms the given URL with the digest to a ColdFeet URL.