IndieWeb v0.0.37 IndieWeb.Webmention.URIAdapter behaviour View Source

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) View Source
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) View Source
to_source_url(object :: any()) :: {:ok, URI.t()} | {:error, any()}

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