IndieWeb v0.0.23 IndieWeb.Webmention.URIAdapter behaviour

Facility for handling URI generation of Webmention logic.

Link to this section Summary

Callbacks

Defines a means of obtaining a target from a URI

Defines a means of generating a URI from the provided value

Link to this section Callbacks

Link to this callback

from_source_url(uri)
from_source_url(uri :: URI.t()) :: {:ok, any()} | {:error, any()}

Defines a means of obtaining a target from a URI.

Link to this callback

to_source_url(object)
to_source_url(object :: any()) :: {:ok, URI.t()} | {:error, any()}

Defines a means of generating a URI from the provided value.