Module gun_wrapper

Behaviours: gen_server.

Function Index

code_change/3
handle_call/3
handle_cast/2
handle_info/2
init/1
open_with_timeout/3Open Gun connection with default timeout.
open_with_timeout/4Open Gun connection with custom timeout.
start_link/0Start the gun wrapper service.
terminate/2

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> any()

handle_call/3

handle_call(X1, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

init/1

init(X1) -> any()

open_with_timeout/3

open_with_timeout(Host::string(), Port::pos_integer(), Opts::map()) -> {ok, pid()} | {error, term()}

Open Gun connection with default timeout

open_with_timeout/4

open_with_timeout(Host::string(), Port::pos_integer(), Opts::map(), Timeout::pos_integer()) -> {ok, pid()} | {error, term()}

Open Gun connection with custom timeout

start_link/0

start_link() -> {ok, pid()} | {error, term()}

Start the gun wrapper service

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc