Compatibility functions for turning a ring handler into a Java servlet.
Compatibility functions for turning a ring handler into a Java servlet.
(build-request-map request)
Create the request map from the HttpServletRequest object.
Create the request map from the HttpServletRequest object.
(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)
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 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.
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 request-map servlet request response)
Associate servlet-specific keys with the request map for use with legacy systems.
Associate servlet-specific keys with the request map for use with legacy systems.
(servlet handler)
(servlet handler options)
Create a servlet from a Ring handler.
Create a servlet from a Ring handler.
(update-servlet-response response response-map)
(update-servlet-response response context response-map)
Update the HttpServletResponse using a response map. Takes an optional AsyncContext.
Update the HttpServletResponse using a response map. Takes an optional AsyncContext.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close