java-tutorials/clojure-modules/clojure-ring
Dhawal Kapil e243694f39 JAVA-20211 Renamed modules (#13827)
* JAVA-20211 Renamed modules

* JAVA-20211 Renamed modules
2023-04-15 10:01:14 +05:30
..
src/ring JAVA-20211 Renamed modules (#13827) 2023-04-15 10:01:14 +05:30
.gitignore JAVA-20211 Renamed modules (#13827) 2023-04-15 10:01:14 +05:30
README.md JAVA-20211 Renamed modules (#13827) 2023-04-15 10:01:14 +05:30
project.clj JAVA-20211 Renamed modules (#13827) 2023-04-15 10:01:14 +05:30

README.md

Clojure Ring Examples

This project acts as a set of examples for the Clojure Ring library.

Runing the examples

The examples can all be run from the Leiningen REPL.

Firstly, start the REPL with lein repl. Then the examples can be executed with:

  • (run simple-handler) - A simple handler that just echos a constant string to the client
  • (run check-ip-handler) - A handler that echos the clients IP Address back to them
  • (run echo-handler) - A handler that echos the value of the "input" parameter back
  • (run request-count-handler) - A handler with a session that tracks how many times this session has requested this handler

In all cases, the handlers can be accessed on http://localhost:3000.

Relevant Articles