© Mark Clow 2018
Mark ClowAngular 5 Projectshttps://doi.org/10.1007/978-1-4842-3279-8_18

18. HTTP and the HttpClient Module

Mark Clow1 
(1)
Sandy Springs, Georgia, USA
 

Ninety-nine percent of Angular projects involve communication between a client (a browser) and some remote server. Normally this is done with HTTP. So, it’s very important to know how HTTP communication works and how you can write code for it. That’s what this chapter is about.

The HyperText Transfer Protocol (HTTP) is designed to enable communications between clients and servers. HTTP works as a request-response protocol between a client and server. We will cover this in more detail in this chapter.

HTTP methods have been around for a long time (since way before AJAX and different types ...

Get Angular 5 Projects: Learn to Build Single Page Web Applications Using 70+ Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.