JSON.LD.DocumentLoader behaviour (JSON-LD.ex v1.0.0)

View Source

Behaviour for document loaders used to retrieve remote documents and contexts.

as specified at https://www.w3.org/TR/json-ld-api/#idl-def-LoadDocumentCallback

Summary

Callbacks

load(t, t)

@callback load(String.t(), JSON.LD.Options.t()) ::
  {:ok, JSON.LD.DocumentLoader.RemoteDocument.t()} | {:error, any()}

Functions

load(url, options)