Module: IndieWeb::Endpoints

Defined in:
lib/indieweb/endpoints.rb,
lib/indieweb/endpoints/client.rb,
lib/indieweb/endpoints/parser.rb,
lib/indieweb/endpoints/version.rb,
lib/indieweb/endpoints/response_body_parser.rb,
lib/indieweb/endpoints/response_headers_parser.rb

Defined Under Namespace

Classes: Client, Error, HttpError, InvalidURIError, Parser, ResponseBodyParser, ResponseHeadersParser, SSLError

Constant Summary collapse

VERSION =
"9.0.0"

Class Method Summary collapse

Class Method Details

.get(url) ⇒ Hash{Symbol => String, Array, nil}

Discover a URL’s IndieAuth, Micropub, Microsub, and Webmention endpoints.

Convenience method for IndieWeb::Endpoints::Client#endpoints.

Examples:

IndieWeb::Endpoints.get("https://aaronparecki.com")

Returns:

  • (Hash{Symbol => String, Array, nil})


33
34
35
# File 'lib/indieweb/endpoints.rb', line 33

def self.get(url)
  Client.new(url).endpoints
end