GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Index
  • jetty
  • dump
  • content-length
  • content-type
  • cookies
  • file
  • file-info
  • flash
  • head
  • keyword-params
  • lint
  • multipart-params
  • byte-array

This view

  • Original page
  • New address

GeezerVison is showing ring-clojure.github.io — Ring 1.15.4

Generated by Codox

Ring 1.15.4

Project

  • Index

Namespaces

  • ring
  • adapter
  • jetty
  • handler
  • dump
  • middleware
  • content-length
  • content-type
  • cookies
  • file
  • file-info
  • flash
  • head
  • keyword-params
  • lint
  • multipart-params
  • byte-array
  • temp-file
  • nested-params
  • not-modified
  • params
  • reload
  • resource
  • session
  • cookie
  • memory
  • store
  • stacktrace
  • util
  • async
  • io
  • jakarta
  • servlet
  • mime-type
  • parsing
  • request
  • response
  • servlet
  • test
  • time
  • websocket
  • protocols

Ring 1.15.4

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.15.4"]

Namespaces

ring.adapter.jetty

A Ring adapter that uses the Jetty embedded web server.

Public variables and functions:

  • run-jetty

ring.handler.dump

A handler that displays the received request map.

Public variables and functions:

  • handle-dump

ring.middleware.content-length

Public variables and functions:

  • content-length-response
  • SizableResponseBody
  • wrap-content-length

ring.middleware.content-type

Middleware for automatically adding a content type to response maps.

Public variables and functions:

  • content-type-response
  • wrap-content-type

ring.middleware.cookies

Middleware for parsing and generating cookies.

Public variables and functions:

  • CookieDateTime
  • CookieInterval
  • cookies-request
  • cookies-response
  • wrap-cookies

ring.middleware.file

Middleware to serve files from a directory.

Public variables and functions:

  • file-request
  • wrap-file

ring.middleware.file-info

Middleware to add Last-Modified and Content-Type headers to file responses.

Public variables and functions:

  • file-info-response
  • wrap-file-info

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:

  • flash-request
  • flash-response
  • wrap-flash

ring.middleware.head

Middleware to simplify replying to HEAD requests.

Public variables and functions:

  • head-request
  • head-response
  • wrap-head

ring.middleware.keyword-params

Middleware that converts parameter keys in the request to keywords.

Public variables and functions:

  • keyword-params-request
  • wrap-keyword-params

ring.middleware.lint

Middleware that checks Ring requests and responses for correctness.

Public variables and functions:

  • wrap-lint

ring.middleware.multipart-params

Middleware that parses multipart request bodies into parameters.

Public variables and functions:

  • content-too-large-handler
  • multipart-params-request
  • parse-multipart-params
  • wrap-multipart-params

ring.middleware.multipart-params.byte-array

A multipart storage engine for storing uploads as in-memory byte arrays.

Public variables and functions:

  • byte-array-store

ring.middleware.multipart-params.temp-file

A multipart storage engine for storing uploads in temporary files.

Public variables and functions:

  • temp-file-store

ring.middleware.nested-params

Middleware to convert a single-depth map of parameters to a nested map.

Public variables and functions:

  • nested-params-request
  • parse-nested-keys
  • wrap-nested-params

ring.middleware.not-modified

Middleware that returns a 304 Not Modified response for responses with
Last-Modified headers.

Public variables and functions:

  • not-modified-response
  • wrap-not-modified

ring.middleware.params

Middleware to parse url-encoded parameters from the query string and request
body.

Public variables and functions:

  • assoc-form-params
  • assoc-query-params
  • params-request
  • wrap-params

ring.middleware.reload

Middleware that reloads modified namespaces on each request.

Public variables and functions:

  • wrap-reload

ring.middleware.resource

Middleware for serving static resources.

Public variables and functions:

  • resource-request
  • wrap-resource

ring.middleware.session

Middleware for maintaining browser sessions using cookies.

Public variables and functions:

  • session-request
  • session-response
  • wrap-session

ring.middleware.session.cookie

A session storage engine that stores session data in encrypted cookies.

Public variables and functions:

  • cookie-store

ring.middleware.session.memory

A session storage engine that stores session data in memory.

Public variables and functions:

  • memory-store

ring.middleware.session.store

Contains the protocol used to define all Ring session storage engines.

Public variables and functions:

  • SessionStore

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:

  • wrap-stacktrace
  • wrap-stacktrace-log
  • wrap-stacktrace-web

ring.util.async

Public variables and functions:

  • raising

ring.util.io

Utility functions for handling I/O.

Public variables and functions:

  • close!
  • last-modified-date
  • piped-input-stream
  • string-input-stream

ring.util.jakarta.servlet

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

Public variables and functions:

  • build-request-map
  • defservice
  • make-service-method
  • merge-servlet-keys
  • servlet
  • update-servlet-response

ring.util.mime-type

Utility functions for determining the mime-types files.

Public variables and functions:

  • default-mime-types
  • ext-mime-type

ring.util.parsing

Regular expressions for parsing HTTP.

Public variables and functions:

  • find-content-type-charset
  • re-charset
  • re-quoted
  • re-token
  • re-value

ring.util.request

Functions for augmenting and pulling information from request maps.

Public variables and functions:

  • body-string
  • character-encoding
  • content-length
  • content-type
  • in-context?
  • path-info
  • request-url
  • set-context
  • urlencoded-form?

ring.util.response

Functions for generating and augmenting response maps.

Public variables and functions:

  • bad-request
  • charset
  • content-type
  • created
  • file-response
  • find-header
  • get-charset
  • get-header
  • header
  • not-found
  • redirect
  • redirect-after-post
  • redirect-status-codes
  • resource-data
  • resource-response
  • response
  • response?
  • set-cookie
  • status
  • update-header
  • url-response

ring.util.servlet

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

Public variables and functions:

  • build-request-map
  • defservice
  • make-service-method
  • merge-servlet-keys
  • servlet
  • update-servlet-response

ring.util.test

Utilities for testing Ring components.

Public variables and functions:

  • string-input-stream

ring.util.time

Functions for dealing with time and dates in HTTP requests.

Public variables and functions:

  • format-date
  • parse-date

ring.websocket

Protocols and utility functions for websocket support.

Public variables and functions:

  • close
  • open?
  • ping
  • pong
  • request-protocols
  • send
  • upgrade-request?
  • websocket-response?

ring.websocket.protocols

Public variables and functions:

  • AsyncSocket
  • Listener
  • PingListener
  • Socket
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.