Copyright © 2014-2021 Marc Worrell
Authors: Marc Worrell.
fetch_result() = {ok, {string(), [{string(), string()}], pos_integer(), binary()}} | {error, term()}
option() = {device, pid()} | {timeout, pos_integer()} | {max_length, pos_integer()} | {authorization, binary() | string()} | {accept, binary() | string()} | {user_agent, binary() | string()} | {language, atom()} | insecure
options() = [option()]
ensure_profiles/0 | |
fetch/2 | Fetch the data and headers from an url. |
fetch_partial/1 | Fetch the first kilobytes of data and headers from an url. |
fetch_partial/2 | Fetch the first N bytes of data and headers from an url, optionally save to the file device. |
periodic_cleanup/0 | |
profile/1 |
ensure_profiles() -> ok
fetch(Url::string() | binary(), Options::options()) -> fetch_result()
Fetch the data and headers from an url
fetch_partial(Url::string() | binary()) -> fetch_result()
Fetch the first kilobytes of data and headers from an url
fetch_partial(DataUrl::string() | binary(), Options::options()) -> fetch_result()
Fetch the first N bytes of data and headers from an url, optionally save to the file device
periodic_cleanup() -> ok
profile(Url::string() | binary()) -> atom()
Generated by EDoc