ionic3: Http vs HttpClient

ใช้ HttpClient ดีกว่า Http

Use the HttpClient class from HttpClientModule if you’re using Angular 4.3.x and above:

It’s an upgraded version of http from @angular/http module with the following improvements:

  • Interceptors allow middleware logic to be inserted into the pipeline
  • Immutable request/response objects
  • Progress events for both request upload and response download