Skip to Content
Mastering Functional Programming
book

Mastering Functional Programming

by Anatolii Kmetiuk
August 2018
Intermediate to advanced
380 pages
10h 2m
English
Packt Publishing
Content preview from Mastering Functional Programming

Communication protocol

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781788620796Supplemental Content