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

Get Seven Web Frameworks in Seven Weeks now with the O’Reilly learning platform.

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