Documentation
¶
Overview ¶
Package webmention provides functions for discovering the webmention endpoint for URLs, and sending webmentions according to http://webmention.org/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverLinksFromReader ¶
DiscoverLinksFromReader discovers URLs in the HTML read from 'r'. Relative URLs found the HTML are resolved against 'baseUrl'. These are candidates for sending webmentions to. If non-empty, sel is a CSS selector identifying the root node(s) to search in for links.
Types ¶
type Client ¶
Client is a webmention client that can discover webmention endpoints and send webmentions.
func New ¶
New constructs a new webmention Client using the provided http.Client. If a nil http.Client is provided, http.DefaultClient is used.
func (*Client) DiscoverEndpoint ¶
DiscoverEndpoint discovers the webmention endpoint for the provided URL.
func (*Client) DiscoverLinks ¶
DiscoverLinks discovers URLs that the provided resource links to. These are candidates for sending webmentions to. If non-empty, sel is a CSS selector identifying the root node(s) to search in for links.
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
webmention-cli
The webmention binary is a command line utiltiy for sending webmentions to the URLs linked to by a given webpage.
|
The webmention binary is a command line utiltiy for sending webmentions to the URLs linked to by a given webpage. |
third_party
|
|
header
Package header provides functions for parsing HTTP headers.
|
Package header provides functions for parsing HTTP headers. |