Liking cljdoc? Tell your friends :D

turvata.settings


defaultclj

source

default-https?clj

(default-https? request)

Heuristic HTTPS detector that works behind common reverse proxies.

Checks Ring :scheme, then X-Forwarded-* and Front-End-Https headers. Security note: only trust forwarded headers when requests come from a trusted reverse proxy / load balancer.

Heuristic HTTPS detector that works behind common reverse proxies.

Checks Ring :scheme, then X-Forwarded-* and Front-End-Https headers.
Security note: only trust forwarded headers when requests come from a trusted
reverse proxy / load balancer.
sourceraw docstring

normalizeclj

(normalize settings-in)

Merge user settings with sane defaults and validate. Guarantees:

  • :cookie-name is a non-blank string
  • :session-ttl-ms is a non-negative integer
  • :login-url and :post-login-redirect start with "/"
  • :https? is a callable predicate
Merge user settings with sane defaults and validate.
Guarantees:
- :cookie-name is a non-blank string
- :session-ttl-ms is a non-negative integer
- :login-url and :post-login-redirect start with "/"
- :https? is a callable predicate
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close