Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update readme and spec to reflect 0.1

  • Loading branch information...
commit 9d80bfa6994a5f1690c3dfc907cee1ae76b8bb27 1 parent 46366c4
@mmcgrana authored
Showing with 9 additions and 10 deletions.
  1. +4 −4 README.textile
  2. +5 −6 SPEC
View
8 README.textile
@@ -22,9 +22,9 @@ To see a more sophisticated Ring app, run:
java -Djava.ext.dirs=deps clojure.main src/ring/example/wrapping.clj
- * If you request @http://localhost:8080/@ in your browser the @ring.dump@ handler will respond with an HTML page representing the request map that it received (see the @SPEC@ for details on the request map).
- * If you request @http://localhost:8080/clojure.png@, the @ring.file@ middleware will detect that there is a @clojure.png@ file in the app's @public@ directory and return that image as a response.
- * If you request @http://localhost:8080/error@, the app will produce an error that will be caught by the @ring.show-exceptions@ middleware, which will in turn return a readable stacktrace as the HTML response.
+ * If you request @http://localhost:8080/@ in your browser the @ring.handler.dump@ handler will respond with an HTML page representing the request map that it received (see the @SPEC@ for details on the request map).
+ * If you request @http://localhost:8080/clojure.png@, the @ring.middleware.file@ middleware will detect that there is a @clojure.png@ file in the app's @public@ directory and return that image as a response.
+ * If you request @http://localhost:8080/error@, the app will produce an error that will be caught by the @ring.middleware.stacktrace@ middleware, which will in turn return a readable stacktrace as the HTML response.
h2. Included Libs
@@ -33,7 +33,7 @@ h2. Included Libs
* @ring.middleware.file@: Middleware that serves static files out of a public directory.
* @ring.middleware.file-info@: Middleware that augments response headers with info about File responses.
* @ring.middleware.static@: Middleware that serves static files with specified prefixes out of a public directory.
- * @ring.middleware.show-exceptions@: Middleware that catches exceptions and displays readable stacktraces for debugging.
+ * @ring.middleware.stacktrace@: Middleware that catches exceptions and displays readable stacktraces for debugging.
* @ring.middleware.reload@: Middleware to automatically reload selected libs before each requests, minimizing server restarts.
* @ring.handler.dump@: Handler that dumps request maps as HTML responses for debugging.
* @ring.util.builder@: Helpers for composing Ring apps from multiple handlers and middleware.
View
11 SPEC
@@ -1,13 +1,12 @@
=== Ring Spec (0.1)
-Ring is defined in terms of Handlers, Middleware, Adapters, Requests Maps, and
-Response Maps, each of which are described below.
+Ring is defined in terms of handlers, middleware, adapters, requests maps, and
+response maps, each of which are described below.
== Handlers
-Ring handlers constitute the core logic of the web application and are
-abstracted from the details of the HTTP protocol. Handlers are implemented as
-Clojure functions that process a given request map to generate and return a
-response map.
+Ring handlers constitute the core logic of the web application. Handlers are
+implemented as Clojure functions that process a given request map to generate
+and return a response map.
== Middleware
Please sign in to comment.
Something went wrong with that request. Please try again.