Route
handler
(Fn [(Ref Route a)] (Ref (Fn [(Ref Request b), (Ref (Map String String) c)] Response) a))
gets the handler property of a Route.
init
(Fn [String, String, (Fn [(Ref Request a), (Ref (Map String String) b)] Response)] Route)
creates a Route.
set-handler
(Fn [Route, (Fn [(Ref Request a), (Ref (Map String String) b)] Response)] Route)
sets the handler property of a Route.
set-handler!
(Fn [(Ref Route a), (Fn [(Ref Request b), (Ref (Map String String) c)] Response)] ())
sets the handler property of a Route in place.
set-method!
(Fn [(Ref Route a), String] ())
sets the method property of a Route in place.
set-pattern!
(Fn [(Ref Route a), String] ())
sets the pattern property of a Route in place.
update-handler
(Fn [Route, (Ref (Fn [(Fn [(Ref Request a), (Ref (Map String String) b)] Response)] (Fn [(Ref Request a), (Ref (Map String String) b)] Response) c) d)] Route)
updates the handler property of a Route using a function f.
update-method
(Fn [Route, (Ref (Fn [String] String a) b)] Route)
updates the method property of a Route using a function f.
update-pattern
(Fn [Route, (Ref (Fn [String] String a) b)] Route)
updates the pattern property of a Route using a function f.