anchor.diff:  receive_chunk({gun_error, _Pid, _StreamRef, _Reason}, State) ->
       {next_state, at_rest, State}.
   
  -%% internal
  +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  +%% Private
  +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  +
   clean_state() ->
       #{pid => undefined,
         stream => undefined,
  
positive.code: manage_chunk(IsFin, HandleEvent, StreamRef, Data, _Responses, State) ->
      HandleEvent(IsFin, StreamRef, Data),
      {next_state, receive_chunk, State}.
  
negative.code:             gen_fsm:sync_send_event(Pid, {asyncget, Url, Headers, HandleEvent})
      end.
  
  -spec events(Pid :: pid()) -> [{nofin | fin, reference(), binary()}].
  events(Pid) ->
      gen_fsm:sync_send_all_state_event(Pid, get_response).
  
  