Boilerplate HTTP Server for Synopse mORMot Framework
TBoilerplateHTTPServer.OnGetAsset
for external, computable assets, files and redirections supportTAsset.Timestamp
type to TUnixTime
for better perfomance and modifications checksTAssset.Clear
and TAssset.Assign
methodsBoilerplateAssets.KnownMIMETypes
as an alternative to SynCommons.GetMimeContentType
bpoDelegateUnauthorizedTo404
set content for HTTP 401 Unauthorized
response code equals to /404
bpoDelegateNotAcceptableTo404
set content for HTTP 406 Not Acceptable
response code equals to /404
bpoDelegateHidden
block access to all hidden files and directories except
for the visible content from within the /.well-known/
hidden directorybpoDisableTRACEMethod
prevents TRACE requests being made via JavaScriptTStrictSSL
supports strictSSLIncludeSubDomainsPreload
DNSPrefetchControl
property controls DNS prefetchingTAssets.SaveToFile
now forces file directories creation before save and returns boolean success/failed valueassetslz
tool didn't store compressed content if it size is greater than the size of the identity content (which prevents unnecessary bundle increase)CSP
unit to handle Content Security Policy Level 2 / Level 3TBoilerplateHTTPServer.ContentSecurityPolicyReportOnly
propertyTAsset.SaveIdentityToFile
when Root
is emptybpoVaryAcceptEncoding
now supports content created by the inherited classbpoDeleteXPoweredBy
was excluded from DEFAULT_BOILERPLATE_OPTIONS
: use NOXPOWEREDNAME
project conditional define as alternatve