(set-context request context)
Associate a context and path-info with the request. The request URI must be
a subpath of the supplied context.
Source
(defn set-context
"Associate a context and path-info with the request. The request URI must be
a subpath of the supplied context."
{:added "1.2"}
[request ^String context]
{:pre [(in-context? request context)]}
(assoc request
:context context
:path-info (subs (:uri request) (.length context))))