Introducing Ring
Ring is not a web framework; it is a simple abstraction of HTTP interactions. While there are quite a few web libraries and even some web frameworks in Clojure, they all seem to build on Ring’s foundations. In this chapter, we’ll explore Ring and some of the most commonly used libraries that leverage it.
Ring models HTTP requests and responses as data. This data is easily manipulated and transformed by all of the standard Clojure tools. In a language designed for the manipulation of data, elevating HTTP to the level of data gives web developers using Ring enormous amounts of power. As Alan Perlis, a American computer scientist well known for his work on programming languages, once said, “It is better to have 100 functions ...
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.
Read now
Unlock full access