Copyright © 2014-2024 Marc Worrell
Authors: Marc Worrell.
fetch_result() = {ok, {FinalUrl::string(), RespHeaders::[{string(), string()}], ContentLength::non_neg_integer(), Content::binary()}} | {error, Reason::term()}
option() = {device, pid()} | {timeout, pos_integer()} | {max_length, pos_integer()} | {use_range, boolean()} | {authorization, binary() | string()} | {accept, binary() | string()} | {user_agent, binary() | string()} | {language, atom()} | {content_type, binary() | string()} | {headers, [{binary() | string(), binary() | string()}]} | insecure
options() = [option()]
| ensure_profiles/0 | |
| fetch/2 | Fetch the data and headers from an url. |
| fetch/4 | Fetch the data and headers from an url. |
| fetch_partial/1 | Fetch the first 64 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. |
| fetch_partial/4 | 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 the data and headers from an url
fetch(Method, Url, Payload, Options) -> fetch_result()
Fetch the data and headers from an url
Fetch the first 64 kilobytes of data and headers from an url
Fetch the first N bytes of data and headers from an url, optionally save to the file device
fetch_partial(Method, Url, Payload, 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