August 2018
Intermediate to advanced
380 pages
10h 2m
English
A popular way to structure a communication protocol of a web application is to follow the RESTful paradigm of communication.
Since the application listens for HTTP requests, it is reasonable that these requests are made to a certain path. For example, a typical HTTP request contains the following headers:
GET http://localhost:8888/order HTTP/1.0User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0Pragma: no-cacheContent-Length: 19Host: localhost:8888
So, as you can see, the request contains a destination string or a so-called path, together with HTTP headers. You can reason about the resources the server exposes as entities that have certain behaviors and data defined on them. The ...