View Source z_url_metadata (zotonic_stdlib v1.15.1)

Discover metadata about an url.

Link to this section Summary

Functions

Fetch metadata information for the URL
Fetch properties of the fetched metadata

Link to this section Types

-type metadata() :: #url_metadata{}.

Link to this section Functions

-spec fetch(binary() | string()) -> {ok, metadata()} | {error, term()}.
Fetch metadata information for the URL
-spec fetch(binary() | string(), z_url_fetch:options()) -> {ok, metadata()} | {error, term()}.
-spec filename(binary() | string(), list()) -> binary() | undefined.
-spec header(binary() | string(), metadata()) -> binary() | undefined.
-spec p(atom() | binary() | [atom() | binary()], metadata()) -> [binary()] | binary() | undefined.
Fetch properties of the fetched metadata