SSERoute

a Server-Sent Events route entry. The handler receives an SSEEvent, the captured path parameters, and an SSEStream handle for queueing events.

copy

instantiate

(Fn [(Ref SSERoute a)] SSERoute)

copies a SSERoute.

delete

instantiate

(Fn [SSERoute] ())

deletes a SSERoute. Should usually not be called manually.

handler

instantiate

(Fn [(Ref SSERoute a)] (Ref (Fn [(Ref SSEEvent b), (Ref (Map String String) c), (Ref SSEStream d)] ()) a))

gets the handler property of a SSERoute.

init

instantiate

(Fn [String, (Fn [(Ref SSEEvent a), (Ref (Map String String) b), (Ref SSEStream c)] ())] SSERoute)

creates a SSERoute.

pattern

instantiate

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

gets the pattern property of a SSERoute.

prn

instantiate

(Fn [(Ref SSERoute a)] String)

converts a SSERoute to a string.

set-handler

instantiate

(Fn [SSERoute, (Fn [(Ref SSEEvent a), (Ref (Map String String) b), (Ref SSEStream c)] ())] SSERoute)

sets the handler property of a SSERoute.

set-handler!

instantiate

(Fn [(Ref SSERoute a), (Fn [(Ref SSEEvent b), (Ref (Map String String) c), (Ref SSEStream d)] ())] ())

sets the handler property of a SSERoute in place.

set-pattern

instantiate

(Fn [SSERoute, String] SSERoute)

sets the pattern property of a SSERoute.

set-pattern!

instantiate

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

sets the pattern property of a SSERoute in place.

str

instantiate

(Fn [(Ref SSERoute a)] String)

converts a SSERoute to a string.

update-handler

instantiate

(Fn [SSERoute, (Ref (Fn [(Fn [(Ref SSEEvent a), (Ref (Map String String) b), (Ref SSEStream c)] ())] (Fn [(Ref SSEEvent a), (Ref (Map String String) b), (Ref SSEStream c)] ()) d) e)] SSERoute)

updates the handler property of a SSERoute using a function f.

update-pattern

instantiate

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

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