Liking cljdoc? Tell your friends :D
Clojure only.

strojure.ring-undertow.impl.request

Ring request implementation.

Ring request implementation.
raw docstring

build-requestclj

(build-request e)

Returns ring request map for given server exchange.

  • Does not contain deprecated keys.

  • The :headers is a persistent map proxy interface over Undertow header map. Header names are case-insensitive. The proxy is converted to Clojure map on updates.

  • The request map itself is a lazy map (zmap) over PersistentHashMap with some values delayed.

  • The :session key is provided when session data is not empty. No additional middleware is required for sessions, but only proper configuration of the Undertow server.

  • The :body is only provided in incomplete request with not consumed input stream.

Returns [ring request map][1] for given server exchange.

- Does not contain deprecated keys.

- The `:headers` is a persistent map proxy interface over Undertow header map.
  Header names are case-insensitive. The proxy is converted to Clojure map on
  updates.

- The request map itself is a lazy map (zmap) over `PersistentHashMap` with
  some values delayed.

- The `:session` key is provided when session data is not empty. No additional
  middleware is required for sessions, but only proper configuration of the
  Undertow server.

- The `:body` is only provided in incomplete request with not consumed input
  stream.

[1]: https://github.com/ring-clojure/ring/wiki/Concepts#requests
sourceraw docstring

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

× close