[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/system/httpheaders/ -> httpheaders.php (summary)

(no description)

Copyright: (C) 2018 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 464 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PlgSystemHttpHeaders:: (7 methods):
  __construct()
  getSubscribedEvents()
  applyHashesToCspRule()
  setHttpHeaders()
  setCspHeader()
  getStaticHeaderConfiguration()
  setStaticHeaders()


Class: PlgSystemHttpHeaders  - X-Ref

Plugin class for HTTP Headers

__construct(&$subject, $config)   X-Ref
Constructor.

param: DispatcherInterface  $subject  The object to observe.
param: array                $config   An optional associative array of configuration settings.

getSubscribedEvents()   X-Ref
Returns an array of events this subscriber will listen to.

return: array

applyHashesToCspRule(Event $event)   X-Ref
The `applyHashesToCspRule` method makes sure the csp hashes are added to the csp header when enabled

return: void

setHttpHeaders(Event $event)   X-Ref
The `setHttpHeaders` method handle the setting of the configured HTTP Headers

return: void

setCspHeader()   X-Ref
Set the CSP header when enabled

return: void

getStaticHeaderConfiguration()   X-Ref
Get the configured static headers.

return: array  We return the array of static headers with its values.

setStaticHeaders()   X-Ref
Set the static headers when enabled

return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer