Skip to content

Latest commit

 

History

History
95 lines (50 loc) · 2.53 KB

hackney_util.md

File metadata and controls

95 lines (50 loc) · 2.53 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
to_int/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()

to_int/1

to_int(S) -> any()