Route

copy

instantiate

(Fn [(Ref Route a)] Route)

copies a Route.

delete

instantiate

(Fn [Route] ())

deletes a Route. Should usually not be called manually.

handler

instantiate

(Fn [(Ref Route a)] (Ref (Fn [(Ref Request b), (Ref (Map String String) c)] Response) a))

gets the handler property of a Route.

init

instantiate

(Fn [String, String, (Fn [(Ref Request a), (Ref (Map String String) b)] Response)] Route)

creates a Route.

method

instantiate

(Fn [(Ref Route a)] (Ref String a))

gets the method property of a Route.

pattern

instantiate

(Fn [(Ref Route a)] (Ref String a))

gets the pattern property of a Route.

prn

instantiate

(Fn [(Ref Route a)] String)

converts a Route to a string.

set-handler

instantiate

(Fn [Route, (Fn [(Ref Request a), (Ref (Map String String) b)] Response)] Route)

sets the handler property of a Route.

set-handler!

instantiate

(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

instantiate

(Fn [Route, String] Route)

sets the method property of a Route.

set-method!

instantiate

(Fn [(Ref Route a), String] ())

sets the method property of a Route in place.

set-pattern

instantiate

(Fn [Route, String] Route)

sets the pattern property of a Route.

set-pattern!

instantiate

(Fn [(Ref Route a), String] ())

sets the pattern property of a Route in place.

str

instantiate

(Fn [(Ref Route a)] String)

converts a Route to a string.

update-handler

instantiate

(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

instantiate

(Fn [Route, (Ref (Fn [String] String a) b)] Route)

updates the method property of a Route using a function f.

update-pattern

instantiate

(Fn [Route, (Ref (Fn [String] String a) b)] Route)

updates the pattern property of a Route using a function f.