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

(*handler-fn-adapter* handler-fn)

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

bean*cljmultimethod

(bean* obj)

Takes a Java object and returns a read-only implementation of the map abstraction based upon its JavaBean properties. Applied recursively if necessary. Returns object itself if bean* is not assigned for the type.

Takes a Java object and returns a read-only implementation of the map
abstraction based upon its JavaBean properties. Applied recursively if
necessary. Returns object itself if `bean*` is not assigned for the type.
sourceraw docstring

deep-beanclj

(deep-bean classes object)

Takes a Java object and returns a read-only implementation of the map abstraction based upon its JavaBean properties. Applied recursively and only on instances of classes.

Takes a Java object and returns a read-only implementation of the map
abstraction based upon its JavaBean properties. Applied recursively and only
on instances of `classes`.
sourceraw docstring

object-typeclj

(object-type obj)

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

  • for records returns (type obj).
  • for maps returns value of the :type key or IPersistentMap.
  • for other objects returns (type obj).

If type is not an instance of symbol/keyword/class then class of this instance returned. If obj is Var it is deref’ed.

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

- for records returns `(type obj)`.
- for maps returns value of the `:type` key or `IPersistentMap`.
- for other objects returns `(type obj)`.

If type is not an instance of symbol/keyword/class then class of this instance
returned. If `obj` is `Var` it is deref’ed.
sourceraw docstring

server-startcljmultimethod

(server-start obj)

Starts Undertow server given obj, returns closeable ServerInstance.

Starts Undertow server given `obj`, returns closeable ServerInstance.
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