Route Requests with Ring

Ring abstracts the details of HTTP into a concise and modular API that can be used as a base for any web application. If you’ve developed web applications in Python or Ruby, you’ll find it similar to the WSGI and Rack libraries found in those languages.[17][18] Ring has adapters for many popular HTTP servers. The most common choices are embedded HTTP servers such as Jetty or HTTP Kit.[19][20]

Since Ring is the de facto standard HTTP library, many mature web development tools and libraries are built on top of it. Even though you’ll rarely use Ring directly, it’s the backbone of Clojure web applications. Knowing how it works is crucial to understanding Clojure web development.

Ring applications consist of four basic ...

Get Web Development with Clojure, 3rd Edition 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.