web: Rename handler slot to http-handler.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 15 Jan 2017 15:26:27 +0000 (09:26 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 15 Jan 2017 15:39:52 +0000 (09:39 -0600)
* 8sync/systems/web.scm (<web-server>, web-server-handle-request):
Rename handler slot to http-handler.

8sync/systems/web.scm

index ce1f6c74d3702fa8ddfcd080f9529c16bbe61657..597fd008574be22775837f9fe8695b1e6e12dc9c 100644 (file)
         #:accessor web-server-addr)
   (socket #:init-value #f
           #:accessor web-server-socket)
-  (handler #:init-keyword #:handler
-           #:getter web-server-handler))
+  (upgrade #:init-value '()
+           #:allocation #:each-subclass)
+  (http-handler #:init-keyword #:http-handler
+                #:getter web-server-http-handler))
 
 (define-method (initialize (web-server <web-server>) init-args)
   (next-method)
@@ -171,7 +173,7 @@ as we're alive."
 (define (web-server-handle-request web-server message
                                    request body)
   (receive (response body)
-      ((web-server-handler web-server) request body)
+      ((web-server-http-handler web-server) request body)
     (receive (response body)
         (sanitize-response request response body)
       (<-reply message response body))))