Angular 5+ : How to put a delay to a / all HttpClient requests? : <p>I have this code :</p>

<pre><code>this.loading = true;
this.http.get&lt;IUser[]&gt;(Urls.users())
            .subscribe(
                response =&gt; {
                    this._values = &lt;IUser[]&gt;response;
                    this.root.next({'users': this._values});
                },
                e =&gt; console.log(e),
                () =&gt; this.loading = false
            );
</code></pre>

<p>The page which is invoking this code has a spinner, which is showing when 'loading' is set to 'true'. But when the request is completed withing 0.5 seconds the spinner is barely shown, and it looks weird on the page.</p>

<p>How can I make this request wait 1 second before completing (without using setTimeout()) ?</p>

<p>Is there a way to delay all http requests without having to modify every code like the code above ?</p>
