Liking cljdoc? Tell your friends :D

strojure.web-security.hsts

The HTTP Strict-Transport-Security response header (often abbreviated as HSTS) informs browsers that the site should only be accessed using HTTPS, and that any future attempts to access it using HTTP should automatically be converted to HTTPS.

The HTTP [Strict-Transport-Security] response header (often abbreviated as
HSTS) informs browsers that the site should only be accessed using HTTPS, and
that any future attempts to access it using HTTP should automatically be
converted to HTTPS.

[Strict-Transport-Security]:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
raw docstring

header-nameclj

Returns "Strict-Transport-Security" string.

Returns "Strict-Transport-Security" string.
sourceraw docstring

HstsHeadercljprotocol

header-valueclj

(header-value obj)

Returns string value for the Strict-Transport-Security response header.

  • "max-age=31536000" for boolean true
  • string as is for strings
Returns string value for the [Strict-Transport-Security] response header.

- "max-age=31536000" for boolean `true`
- string as is for strings

[Strict-Transport-Security]:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
source

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

× close