Ring handler for Undertow server.
Ring handler for Undertow server.
(ring {handler :fn async :async})
Returns HttpHandler for ring handler function.
:fn
The function to return HttpHandler
for.:async
Boolean flag if handler function is synchronous or asynchronous.
See also documentation for ring-sync
and ring-async
.Can be used declaratively in server-configuration:
(server/start {:handler {:type ring, :fn my-handler-fn, :async true}})
NOTE: The strojure.ring-undertow.handler
namespace need to be imported to
make declarative configuration available.
Returns HttpHandler for [ring handler function][1]. - `:fn` The function to return `HttpHandler` for. - `:async` Boolean flag if handler function is synchronous or asynchronous. See also documentation for [[ring-sync]] and [[ring-async]]. Can be used declaratively in server-configuration: (server/start {:handler {:type ring, :fn my-handler-fn, :async true}}) NOTE: The `strojure.ring-undertow.handler` namespace need to be imported to make declarative configuration available. [1]: https://github.com/ring-clojure/ring/wiki/Concepts#handlers
(ring-async handler-fn)
Returns HttpHandler for asynchronous ring handler function.
The function handler-fn
takes three arguments: the request map, a response
callback and an exception callback.
Returns HttpHandler for **asynchronous** [ring handler function][1]. The function `handler-fn` takes three arguments: the request map, a response callback and an exception callback. [1]: https://github.com/ring-clojure/ring/wiki/Concepts#handlers
(ring-sync handler-fn)
Returns HttpHandler for synchronous ring handler function.
The function handler-fn
takes one argument, a map representing a HTTP
request, and return a map representing the HTTP response.
Returns HttpHandler for **synchronous** [ring handler function][1]. The function `handler-fn` takes one argument, a map representing a HTTP request, and return a map representing the HTTP response. [1]: https://github.com/ring-clojure/ring/wiki/Concepts#handlers
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close