module Ktistec::Network

Overview

Utilities for network operations.

Defined in:

utils/network.cr

Class Method Summary

Class Method Detail

def self.resolve(name) #

Resolves the name of a resource to the network IRI of the resource.

Returns the IRI if successful. Raises an error if things go wrong:

HostMeta::Error, WebFinger::Error - the underlying lookup failed

KeyError - a rel="self" link does not exist in the retrieved record

NilAssertionError - the href attribute is blank


[View source]