10.1 Route context APIs

(rc-path <route-context>)
;; e.g
(get "/hello/world" (lambda (rc) (rc-path rc)))
;; visit localhost:3000/hello/world or from any port you specified
;; the result is "/hello/world".
(get "/hello/:who" (lambda (rc) (rc-path rc)))
;; visit localhost:3000/hello/world or from any port you specified
;; the result is "/hello/world".
(rc-req <route-context>)
(rc-body <route-context>)
(rc-method <route-context>)
(rc-conn <route-context>)
(rc-qt <route-context>)
(rc-handler <route-context>)
(rc-mtime <route-context>) ; getter
(rc-mtime! <route-context>) ; setter
(rc-cookie <route-context>)
(rc-set-cookie! <route-context>)

There’re other APIs in route-context, but they’re largely used for internals of Artanis, rarely useful for users. So we don’t list them here.