title: How to intercept the response in angular 4 with HttpInterceptor
body: <p>I do have the following Interceptor:</p>
  
  <pre><code>@Injectable()
  export class TokenInterceptor implements HttpInterceptor {
  
    constructor(private tokenService: TokenService) { }
  
    intercept(req: HttpRequest&lt;any&gt;, next: HttpHandler): Observable&lt;HttpEvent&lt;any&gt;&gt; {
      const token = this.tokenService.getToken();
  
      if (token) {
        const authReq = req.clone({
          headers: req.headers.set('Authorization', `Bearer ${token}`)
        });
  
        return next.handle(authReq);
      }
  
      return next
        .handle(req)
  //
        .getSomehowTheResponse()
        .andSaveTheTokenInStorage()
        .andPropagateNextTheResponse()
    }
  }
  </code></pre>
  
  <p>And I want to save the token from the response header in local storage, all the tutorials are showing how to intercept the request, but not very clearly the response.</p>