Here is just regular request looking like that:
this.people = http.get(\'http://localhost:3000/users\') .map(response => response.json()
If you are using RxJS version 6 and above the current syntax is this:
import { timeout } from 'rxjs/operators';
getPeople(){ return this.http.get(API_URL) .pipe( timeout(5000) //5 seconds );