Skip to content

Commit

Permalink
set the namespace for httpd Mux
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Dec 16, 2024
1 parent 55ea03f commit 0f0430d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tools/gxhttpd.ss
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@
(else
{self.__get-handler path})))))
(else
{self.__get-handler path}))))
{self.__get-handler path})))
interface: Mux)

(defmethod {__get-handler dynamic-mux}
(lambda (self (path :- :string))
Expand Down Expand Up @@ -418,7 +419,8 @@

(defmethod {put-handler! dynamic-mux}
(lambda (self host (path :- :string) (handler :- :procedure))
(hash-put! self.handlers path handler)))
(hash-put! self.handlers path handler))
interface: Mux)

(def (not-found-handler req res)
(http-response-write-condition res Not-Found))
Expand Down

0 comments on commit 0f0430d

Please sign in to comment.