Liking cljdoc? Tell your friends :D

ring.util.servlet

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

build-request-map

Type: var

Arguments:

[request]
Create the request map from the HttpServletRequest object.

View source

defservice

Type: macro

Arguments:

[handler]
[prefix handler]
[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)

View source

make-service-method

Type: var

Arguments:

[handler]
[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.

View source

merge-servlet-keys

Type: var

Arguments:

[request-map servlet request response]
Associate servlet-specific keys with the request map for use with legacy
systems.

View source

servlet

Type: var

Arguments:

[handler]
[handler options]
Create a servlet from a Ring handler.

View source

update-servlet-response

Type: var

Arguments:

[response response-map]
[response context response-map]
Update the HttpServletResponse using a response map. Takes an optional
AsyncContext.

View source

Can you improve this documentation?Edit on GitHub

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

× close