Ring 1.13.0
Released under the MIT License
A Clojure web applications library.
Installation
To install, add the following dependency to your project or build file:
[ring "1.13.0"]
Namespaces
ring.adapter.jetty
A Ring adapter that uses the Jetty 9 embedded web server.
Public variables and functions:
ring.middleware.content-type
Middleware for automatically adding a content type to response maps.
Public variables and functions:
ring.middleware.cookies
Middleware for parsing and generating cookies.
Public variables and functions:
ring.middleware.file-info
Middleware to add Last-Modified and Content-Type headers to file responses.
Public variables and functions:
ring.middleware.flash
Middleware that adds session-based flash store that persists only to the next request in the same session.
Public variables and functions:
ring.middleware.head
Middleware to simplify replying to HEAD requests.
Public variables and functions:
ring.middleware.keyword-params
Middleware that converts parameter keys in the request to keywords.
Public variables and functions:
ring.middleware.lint
Middleware that checks Ring requests and responses for correctness.
Public variables and functions:
ring.middleware.multipart-params
Middleware that parses multipart request bodies into parameters.
Public variables and functions:
ring.middleware.multipart-params.byte-array
A multipart storage engine for storing uploads as in-memory byte arrays.
Public variables and functions:
ring.middleware.multipart-params.temp-file
A multipart storage engine for storing uploads in temporary files.
Public variables and functions:
ring.middleware.nested-params
Middleware to convert a single-depth map of parameters to a nested map.
Public variables and functions:
ring.middleware.not-modified
Middleware that returns a 304 Not Modified response for responses with Last-Modified headers.
Public variables and functions:
ring.middleware.params
Middleware to parse url-encoded parameters from the query string and request body.
Public variables and functions:
ring.middleware.reload
Middleware that reloads modified namespaces on each request.
Public variables and functions:
ring.middleware.session
Middleware for maintaining browser sessions using cookies.
Public variables and functions:
ring.middleware.session.cookie
A session storage engine that stores session data in encrypted cookies.
Public variables and functions:
ring.middleware.session.memory
A session storage engine that stores session data in memory.
Public variables and functions:
ring.middleware.session.store
Contains the protocol used to define all Ring session storage engines.
Public variables and functions:
ring.middleware.stacktrace
Middleware that catches exceptions thrown by the handler, and reports the error and stacktrace via a webpage and STDERR log.
Public variables and functions:
ring.util.jakarta.servlet
Compatibility functions for turning a ring handler into a Java servlet.
Public variables and functions:
ring.util.mime-type
Utility functions for determining the mime-types files.
Public variables and functions:
ring.util.request
Functions for augmenting and pulling information from request maps.
Public variables and functions:
ring.util.response
Functions for generating and augmenting response maps.
ring.util.servlet
Compatibility functions for turning a ring handler into a Java servlet.
Public variables and functions:
ring.util.time
Functions for dealing with time and dates in HTTP requests.
Public variables and functions: