A Close Look at Angular’s New HttpClient - Session/ Workshop
NG-BE 2017, 8. 12. 2017 bis 8. 12. 2017 in Ghent, Belgium
Nearly all Angular applications must communicate with HTTP-based APIs. To facilitate this task, Angular 4.3 introduced the new HttpClient. This session explores its possibilities. It shows how to use both JSON and other text-based formats like XML or CSV. Furthermore, we investigate how to deal with binary streams and how an application can acquire progress information when performing file up- and downloads. We also look at Interceptors that allow the implementation of cross-cutting concerns like security checks, logging, or caching. We conclude by examining how to defend against XSRF attacks and what the HttpClient has in store for testing.