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 a Ring request map from a HttpServletRequest object. Includes keys for both Ring 1 and Ring 2.
Create a Ring request map from a HttpServletRequest object. Includes keys for both Ring 1 and Ring 2.
(build-request-map-1 request)
Create a Ring request map from a HttpServletRequest object. Includes keys for only Ring 1.
Create a Ring request map from a HttpServletRequest object. Includes keys for *only* Ring 1.
(build-request-map-2 request)
Create a Ring request map from a HttpServletRequest object. Includes keys for only Ring 2.
Create a Ring request map from a HttpServletRequest object. Includes keys for *only* Ring 2.
(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 a request map for use with legacy systems. Includes keys for both Ring 1 and Ring 2.
Associate servlet-specific keys with a request map for use with legacy systems. Includes keys for both Ring 1 and Ring 2.
(merge-servlet-keys-1 request-map servlet request response)
Associate servlet-specific keys with a request map for use with legacy systems. Includes keys for only Ring 1.
Associate servlet-specific keys with a request map for use with legacy systems. Includes keys for *only* Ring 1.
(merge-servlet-keys-2 request-map servlet request response)
Associate servlet-specific keys with a request map for use with legacy systems. Includes keys for only Ring 2.
Associate servlet-specific keys with a request map for use with legacy systems. Includes keys for *only* Ring 2.
(request-response-functions)
(request-response-functions ring-version)
Given a Ring version (1 or 2), return a map of three functions,
:build-request-map
, :update-servlet-response
and merge-servlet-keys
that will build the request map, update the servlet response and add optional
servlet keys.
See: build-request-map
, update-servlet-response
and
merge-servlet-keys
.
Given a Ring version (1 or 2), return a map of three functions, `:build-request-map`, `:update-servlet-response` and `merge-servlet-keys` that will build the request map, update the servlet response and add optional servlet keys. See: [[build-request-map]], [[update-servlet-response]] and [[merge-servlet-keys]].
(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 Ring 1 or Ring 2 response map. Takes an optional AsyncContext.
Update the HttpServletResponse using a Ring 1 *or* Ring 2 response map. Takes an optional AsyncContext.
(update-servlet-response-1 response response-map)
(update-servlet-response-1 response context response-map)
Update the HttpServletResponse using a Ring 1 response map. Takes an optional AsyncContext.
Update the HttpServletResponse using a Ring 1 response map. Takes an optional AsyncContext.
(update-servlet-response-2 response response-map)
(update-servlet-response-2 response context response-map)
Update the HttpServletResponse using a Ring 2 response map. Takes an optional AsyncContext.
Update the HttpServletResponse using a Ring 2 response map. Takes an optional AsyncContext.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close