IndieWeb v0.0.38 IndieWeb.Webmention View Source
Handles Webmention interoperability for a site.
Link to this section Summary
Functions
Sends out a Webmention to the provided endpoint
for target
from source
Finds the Webmention endpoint of the provided URI
Parses properties of an incoming Webmention
Sends a Webmention to the provided URI
Defines the adpater to use to resolve URI and source content
Link to this section Functions
direct_send!(endpoint, target_url, source) View Source
Sends out a Webmention to the provided endpoint
for target
from source
.
discover_endpoint(page_url) View Source
Finds the Webmention endpoint of the provided URI.
This employs the Webmention endpoint discovery algorithm to find the proper endpoint to send Webmentions for the URI in question.
TODO: Add User-Agent information (by allowing to pass in header options)
receive(args) View Source
Parses properties of an incoming Webmention.
This aims to resolve the target of an incoming Webmention and determine if there's a valid action to take from it.
resolve_source_url(source) View Source
resolve_target_from_url(target_url) View Source
send(target_url, source)
View Source
send(binary(), any()) ::
{:ok, IndieWeb.Webmention.SendResponse.t()} | {:error, any()}
send(binary(), any()) ::
{:ok, IndieWeb.Webmention.SendResponse.t()} | {:error, any()}
send(binary(), any()) :: {:ok, IndieWeb.Webmention.SendResponse.t()} | {:error, any()}
send(binary(), any()) :: {:ok, IndieWeb.Webmention.SendResponse.t()} | {:error, any()}
Sends a Webmention to the provided URI.
This determines the endpoint to send Webmentions to (using discover_endpoint/1
) and
sends the request using the HTTP client provided.
url_adapter()
View Source
url_adapter() :: IndieWeb.Webmention.URIAdapter.t()
url_adapter() :: IndieWeb.Webmention.URIAdapter.t()
Defines the adpater to use to resolve URI and source content.