ring.util.servlet
Compatibility functions for turning a ring handler into a Java servlet.
build-request-map
(build-request-map request)
Create the request map from the HttpServletRequest object.
defservice
macro
(defservice handler)
(defservice prefix handler)
(defservice prefix handler options)
Defines a service method with an optional prefix suitable for being used by
genclass to compile a HttpServlet class.
For example:
(defservice my-handler)
(defservice "my-prefix-" my-handler)
make-service-method
(make-service-method handler)
(make-service-method handler options)
Turns a handler into a function that takes the same arguments and has the
same return value as the service method in the HttpServlet class.
merge-servlet-keys
(merge-servlet-keys request-map servlet request response)
Associate servlet-specific keys with the request map for use with legacy
systems.
servlet
(servlet handler)
(servlet handler options)
Create a servlet from a Ring handler.
update-servlet-response
(update-servlet-response response response-map)
(update-servlet-response response context response-map)
Update the HttpServletResponse using a response map. Takes an optional
AsyncContext.