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

A handler that displays the received request map.

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.

ring.middleware.file

Middleware to serve files from a directory.

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.

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.

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.

ring.middleware.reload

Middleware that reloads modified namespaces on each request.

Public variables and functions:

ring.middleware.resource

Middleware for serving static resources.

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.

ring.util.async

Public variables and functions:

ring.util.io

Utility functions for handling I/O.

ring.util.jakarta.servlet

Compatibility functions for turning a ring handler into a Java servlet.

ring.util.mime-type

Utility functions for determining the mime-types files.

Public variables and functions:

ring.util.parsing

Regular expressions for parsing HTTP.

ring.util.request

Functions for augmenting and pulling information from request maps.

ring.util.response

Functions for generating and augmenting response maps.

ring.util.servlet

Compatibility functions for turning a ring handler into a Java servlet.

ring.util.test

Utilities for testing Ring components.

Public variables and functions:

ring.util.time

Functions for dealing with time and dates in HTTP requests.

Public variables and functions:

ring.websocket

Protocols and utility functions for websocket support.

ring.websocket.protocols

Public variables and functions: