hackney_manager (hackney v4.0.1)

View Source

Summary

Functions

Get the async response pid (backward compatibility). In the new architecture, all streaming connections are considered "async".

Check the state of a connection (backward compatibility). In the old architecture, this tracked request state. In the new architecture, we simply check if the connection process is alive. Returns req_not_found if the process is dead, or the connection state name.

Functions

async_response_pid(Ref)

-spec async_response_pid(pid()) -> {ok, pid()} | {error, req_not_found | req_not_async}.

Get the async response pid (backward compatibility). In the new architecture, all streaming connections are considered "async".

code_change(OldVsn, State, Extra)

get_state(ConnPid)

-spec get_state(pid() | term()) -> req_not_found | atom().

Check the state of a connection (backward compatibility). In the old architecture, this tracked request state. In the new architecture, we simply check if the connection process is alive. Returns req_not_found if the process is dead, or the connection state name.

handle_call(Request, From, State)

handle_cast(Msg, State)

handle_info(Info, State)

init(_)

start_link()

terminate(Reason, State)