class

LavinMQ::HTTP::StaticController

Inherits HTTP::Handler < Reference < Object

Constants

CONTENT_SECURITY_POLICY = "default-src 'none'; style-src 'self'; font-src 'self'; img-src 'self'; connect-src 'self'; script-src 'self' '#{LAYOUT_INLINE_JS_SHA}' '#{LOGIN_INLINE_JS_SHA}' '#{VERSION_INLINE_JS_SHA}'"
LAYOUT_INLINE_JS_SHA = "sha256-xCBzVV2TewAz4Dk/CrTquSJ4NTH48Y5fckwTF8Lg5bE="
LOGIN_INLINE_JS_SHA = "sha256-3bUZcnRc7hbNc+igS1dxqJNEEypKXCvZ9ozHwAxXIvc="
PUBLIC_DIR = "/tmp/tmp.JEeGmA/src/src/lavinmq/http/controller/../../../../static"
PUBLIC_HTML = {"/login.html", "/401.html", "/404.html"}

HTML views reachable without a session

VERSION_INLINE_JS_SHA = "sha256-GgZA/DYl7oCp6n7XdT+Bi2RHOQdZ/onfVRmY6d8/Jow="

Instance methods

call(context)
Source