Method: Webmention.verify_webmention

Defined in:
lib/webmention.rb

.verify_webmention(source, target, vouch: nil) ⇒ Boolean

Verify that a source URL links to a target URL.

Raises:

  • (NoMethodError)

    Raised when response is an ErrorResponse or response is of an unsupported MIME type.



95
96
97
# File 'lib/webmention.rb', line 95

def self.verify_webmention(source, target, vouch: nil)
  Client.new(source, vouch: vouch).verify_webmention(target)
end