Routing Requests with Ring

Ring aims to abstract the details of HTTP into a simple and modular API that can be used to build a large spectrum of applications. If you’ve developed web applications in Python or Ruby, then you’ll find it similar to the WSGI and Rack libraries found in those languages.[24][25]

Since Ring has become the de facto standard for building web applications, a lot of tools and middleware have been developed around it. While in most cases you won’t need to use Ring directly, it’s useful to have a high-level understanding of its design, as it will help you in developing and troubleshooting your applications.

Ring applications consist of four basic components: the handler, the request, the response, and the middleware ...

Get Web Development with Clojure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.