flush(ConnPid) -> ok flush(StreamRef) -> ok ConnPid :: pid() StreamRef :: reference()
gun:flush - Flush all messages related to a connection or a stream
flush(ConnPid) -> ok flush(StreamRef) -> ok ConnPid :: pid() StreamRef :: reference()
Flush all messages related to a connection or a stream.
Either of these arguments may be provided:
The pid of the Gun connection process.
Identifier of the stream for the original request.
The atom ok
is returned.
gun:flush(ConnPid).
gun:flush(StreamRef).