{gun_data, ConnPid, StreamRef, IsFin, Data}
ConnPid :: pid()
StreamRef :: gun:stream_ref()
IsFin :: fin | nofin
Data :: binary()gun_data - Response body
{gun_data, ConnPid, StreamRef, IsFin, Data}
ConnPid :: pid()
StreamRef :: gun:stream_ref()
IsFin :: fin | nofin
Data :: binary()Response body.
This message informs the relevant process that the server sent a all or part of the body for the response to the original request.
A data message is always preceded by a response message.
The response body may be terminated either by a data
message with the flag fin set or by a
gun_trailers(3) message.
The pid of the Gun connection process.
Identifier of the stream for the original request.
Whether this message terminates the response.
All or part of the response body.
1.0: Message introduced.
handle_info({gun_data, ConnPid, _StreamRef, _IsFin, _Data}, State=#state{conn_pid=ConnPid}) -> %% Do something. {noreply, State}.