Permalink
Fetching contributors…
Cannot retrieve contributors at this time
90 lines (47 sloc) 2.39 KB

Module hackney_util

Function Index

filter_options/3filter a proplists and only keep allowed keys.
is_ipv6/1
maybe_apply_defaults/2
merge_opts/2
mod_metrics/0
privdir/0
require/1Start the given applications if they were not already started.
set_option_default/3set the default options in a proplists if not defined.
to_atom/1

Function Details

filter_options/3


filter_options(Tail::[{atom(), any()} | {raw, any(), any(), any()}], AllowedKeys::[atom()], Acc) -> Acc
  • Acc = [any()]

filter a proplists and only keep allowed keys

is_ipv6/1

is_ipv6(Host) -> any()

maybe_apply_defaults/2

maybe_apply_defaults(Rest, Options) -> any()

merge_opts/2

merge_opts(Rest, Options) -> any()

mod_metrics/0

mod_metrics() -> any()

privdir/0

privdir() -> any()

require/1


require(Rest::[module()]) -> ok

Start the given applications if they were not already started.

set_option_default/3


set_option_default(Opts, Key::atom(), Value::any()) -> Opts
  • Opts = [{atom(), any()}]

set the default options in a proplists if not defined

to_atom/1

to_atom(V) -> any()