Liking cljdoc? Tell your friends :D

strojure.undertow.api.types

Functions to coerce Clojure types to Undertow Java classes.

Functions to coerce Clojure types to Undertow Java classes.
raw docstring

*handler-fn-adapter*clj

The function (fn [f] handler) to coerce Clojure functions to HttpHandler instances.

  • Default implementation raise exception.
  • Can be overridden permanently using server/set-handler-fn-adapter function.
The function `(fn [f] handler)` to coerce Clojure functions to `HttpHandler`
instances.

- Default implementation raise exception.
- Can be overridden permanently using `server/set-handler-fn-adapter` function.
sourceraw docstring

as-handlercljmultimethod

(as-handler obj)

Coerces obj to the instance of HttpHandler.

Coerces `obj` to the instance of `HttpHandler`.
sourceraw docstring

as-listener-buildercljmultimethod

(as-listener-builder obj)

Coerces obj to the instance of io.undertow.Undertow$ListenerBuilder.

Coerces `obj` to the instance of `io.undertow.Undertow$ListenerBuilder`.
sourceraw docstring

as-optioncljmultimethod

(as-option k v)

Coerces option k to the pair of Undertow option and value of correct type. Used to create keyword aliases to Java objects of Undertow objects.

Coerces option `k` to the pair of Undertow option and value of correct type.
Used to create keyword aliases to Java objects of Undertow objects.
sourceraw docstring

as-option-mapclj

(as-option-map m)

Coerces Clojure map to Undertow's OptionMap.

Coerces Clojure map to Undertow's `OptionMap`.
sourceraw docstring

as-resource-managercljmultimethod

(as-resource-manager obj)

Coerces obj to the instance of io.undertow.server.handlers.resource.ResourceManager

Coerces `obj` to the instance of
`io.undertow.server.handlers.resource.ResourceManager`
sourceraw docstring

as-session-configcljmultimethod

(as-session-config obj)

Coerces obj to the instance of SessionConfig.

Coerces `obj` to the instance of `SessionConfig`.
sourceraw docstring

as-session-managercljmultimethod

(as-session-manager obj)

Coerces obj to the instance of SessionManager.

Coerces `obj` to the instance of `SessionManager`.
sourceraw docstring

as-websocket-callbackcljmultimethod

(as-websocket-callback obj)

Coerces obj to the instance of WebSocketCallback.

Coerces `obj` to the instance of `WebSocketCallback`.
sourceraw docstring

as-websocket-connection-callbackcljmultimethod

(as-websocket-connection-callback obj)

Coerces obj to the instance of WebSocketConnectionCallback.

Coerces `obj` to the instance of `WebSocketConnectionCallback`.
sourceraw docstring

as-websocket-listenercljmultimethod

(as-websocket-listener obj)

Coerces obj to the instance of ChannelListener.

Coerces `obj` to the instance of `ChannelListener`.
sourceraw docstring

as-wrappercljmultimethod

(as-wrapper obj)

Coerces obj to the 1-arity function which wraps handler and returns new handler.

Coerces `obj` to the 1-arity function which wraps handler and returns new
handler.
sourceraw docstring

object-typeclj

(object-type obj)

Returns object type to be used as dispatch value for multimethods.

  • for maps returns value of the :type key or :default.
  • for other objects returns (type obj).
Returns object type to be used as dispatch value for multimethods.

- for maps returns value of the `:type` key or `:default`.
- for other objects returns `(type obj)`.
sourceraw docstring

server-startcljmultimethod

(server-start obj)

Starts Undertow server given obj, returns instance which can be stopped.

Starts Undertow server given `obj`, returns instance which can be stopped.
sourceraw docstring

server-stopcljmultimethod

(server-stop obj)

Stops Undertow server, returns nil.

Stops Undertow server, returns nil.
sourceraw docstring

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

× close