Module z_url_metadata

Discover metadata about an url.

Copyright © 2014-2021 Marc Worrell

Authors: Marc Worrell.

Description

Discover metadata about an url.

Data Types

metadata()

metadata() = #url_metadata{}

Function Index

fetch/1Fetch metadata information for the URL.
fetch/2
filename/2
header/2
html_meta/1
p/2Fetch properties of the fetched metadata.

Function Details

fetch/1

fetch(Url::binary() | string()) -> {ok, metadata()} | {error, term()}

Fetch metadata information for the URL

fetch/2

fetch(Url::binary() | string(), Options::z_url_fetch:options()) -> {ok, metadata()} | {error, term()}

filename/2

filename(Url::binary() | string(), Hs::list()) -> binary() | undefined

header/2

header(H::binary() | string(), Url_metadata::metadata()) -> binary() | undefined

html_meta/1

html_meta(Data) -> any()

p/2

p(Ks::atom() | binary() | [atom() | binary()], MD::metadata()) -> [binary()] | binary() | undefined

Fetch properties of the fetched metadata


Generated by EDoc