title: Difference between doOnSuccess and doOnEach, and in which use case i should use each of them
body: <p>I am reviewing a source code file and found in certain commit that we changed the usage of </p>
  
  <pre><code>    .doOnSuccess(response -&gt; logBodyAsJSON(response ));
  </code></pre>
  
  <p>Into </p>
  
  <pre><code>    .doOnEach(response -&gt; logBodyAsJSON(response ));
  </code></pre>
  
  <p>I cannot find a clear reason to do that.</p>
  
  <p>So what is the difference between doOnSuccess and doOnEach, and in which use case i should use each of them?</p>