Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

http/aggregate middleware is gone in 0.3

  • Loading branch information...
commit 28a49a7ed2749e52452f487a2053638bd00a79ed 1 parent e1d28a3
@michaelklishin authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 src/com/novemberain/momentum/examples/server/echo.clj
View
12 src/com/novemberain/momentum/examples/server/echo.clj
@@ -1,8 +1,7 @@
(ns com.novemberain.momentum.examples.server.echo
(:gen-class)
(:require [clojure.tools.logging :as logging]
- [momentum.http.server :as http.server]
- [momentum.http.aggregate :as aggregate])
+ [momentum.http.server :as http.server])
(:use [clojure.tools.cli]
[momentum.core.buffer]))
@@ -20,16 +19,15 @@
(defn- echo-app
([] (echo-app {}))
([opts]
- (aggregate/middleware
- (fn [dn env]
- (fn [evt [headers body]]
- (cond
+ (fn [dn env]
+ (fn [evt [headers body]]
+ (cond
(= :request evt)
(dn :response [200 headers body])
:else
(dn evt [headers body]))))
- opts)))
+ opts))
(defn start-server
[host port]
Please sign in to comment.
Something went wrong with that request. Please try again.