title: How to wait only for certain time to get response of HTTP request (GET/POST) in angular 2?
body: <p>How to wait only for certain time to get the response of HTTP request (GET/POST) in angular 2 otherwise break the HTTP request?</p>
  
  <p>I had a look on <code>timeout</code> and <code>setTimeInterval</code> functions but those do not break the HTTP request within specified time limit.</p>
  
  <p>Basically, what I am trying to do is break the HTTP request (whether get or post) if it doesn't get the response within 5 seconds.</p>