stream_info(ConnPid, StreamRef) -> {ok, undefined | Info} | {error, not_connected} ConnPid :: pid() StreamRef :: reference() Info :: #{ ref => reference(), reply_to => pid(), state => running | stopping }
gun:stream_info - Obtain information about a stream
stream_info(ConnPid, StreamRef) -> {ok, undefined | Info} | {error, not_connected} ConnPid :: pid() StreamRef :: reference() Info :: #{ ref => reference(), reply_to => pid(), state => running | stopping }
Obtain information about a stream.
The pid of the Gun connection process.
Identifier of the stream for the original request.
A map is returned containing various informations about the stream.
Info = gun:stream_info(ConnPid, StreamRef).
gun(3), gun:get(3), gun:head(3), gun:options(3), gun:patch(3), gun:post(3), gun:put(3), gun:delete(3), gun:headers(3), gun:request(3), gun:cancel(3)
Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:
Recurring payment options are also available via BountySource. These funds are used to cover the recurring expenses like dedicated servers or domain names.