View Source hackney_pool_handler behaviour (hackney v1.23.0)

Summary

Callbacks

checkin/2

-callback checkin({Info :: any(), CheckingReference :: any(), Owner :: pid(), Transport :: atom()},
                  Socket :: inet:socket()) ->
                     ok | {error, Reason :: any()}.

checkout/4

-callback checkout(Host :: host(), Port :: integer(), Transport :: atom(), Client :: client()) ->
                      {ok,
                       {Info :: any(), CheckingReference :: any(), Owner :: pid(), Transport :: atom()},
                       Socket :: inet:socket()} |
                      {error, Reason :: any()}.

notify/2

-callback notify(Pool :: atom(), Message :: any()) -> ok.

start/0

-callback start() -> ok | {error, Reason :: any()}.