module HostMeta::Client
Overview
The client.
Defined in:
host_meta/client.crClass Method Summary
-
.query(host)
Returns the result of querying the specified host.
Class Method Detail
def self.query(host)
#
Returns the result of querying the specified host.
h = HostMeta.query("epiktistes.com") # => #<HostMeta::Result:0x10e99...>
h.links("lrdd").first.template # => "https://epiktistes.com/.well-known/webfinger?resource={uri}"
Raises HostMeta::NotFoundError
if the host does not
exist. Otherwise, returns HostMeta::Result
.