View Source z_url_metadata (zotonic_stdlib v1.16.0)
Link to this section Summary
Link to this section Types
-type metadata() :: #url_metadata{}.
Link to this section Functions
-spec fetch(binary() | string()) -> {ok, metadata()} | {error, term()}.
-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.