Liking cljdoc? Tell your friends :D

ring.util.servlet

Compatibility functions for turning a ring handler into a Java servlet.

Compatibility functions for turning a ring handler into a Java servlet.
raw docstring

build-request-mapclj

(build-request-map request)

Create the request map from the HttpServletRequest object.

Create the request map from the HttpServletRequest object.
sourceraw docstring

defservicecljmacro

(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)
sourceraw docstring

make-service-methodclj

(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.
sourceraw docstring

merge-servlet-keysclj

(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.
sourceraw docstring

servletclj

(servlet handler)
(servlet handler options)

Create a servlet from a Ring handler.

Create a servlet from a Ring handler.
sourceraw docstring

update-servlet-responseclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close