Skip to content

Latest commit

 

History

History
191 lines (133 loc) · 3.62 KB

markdownText.md

File metadata and controls

191 lines (133 loc) · 3.62 KB

Description

HeaderBag apply ([ ?HttpAdapter $http = new GlobalHttpAdapter ] )

Calling this function will initiate the following

  1. Existing headers from the HttpAdapter's source will be imported into SecureHeaders' internal list, parsed
  2. Automatic header functions will be applied
  3. CSP, HSTS, and HPKP policies will be compiled and added to SecureHeaders' internal header list
  4. Headers queued for removal will be deleted from SecureHeaders' internal header list
  5. Safe Mode will examine the list of headers, and make any required changes according to its settings
  6. The HttpAdapter will be instructed to remove all headers from its header source, Headers will then be copied from SecureHeaders' internal header list, into the HttpAdapter's (now empty) list of headers
  7. If error reporting is enabled (both within SecureHeaders and according to the PHP configuration values for error reporting, and whether to display errors)
    • Missing security headers will be reported as E_USER_WARNING
    • Misconfigured headers will be reported as E_USER_WARNING or E_USER_NOTICE depending on severity, the former being most severe an issue.

Note: Calling this function is required before the first byte of output in order for SecureHeaders to (be able to) do anything. If you're not sure when the first byte of output might occur, or simply don't want to have to call this every time – take a look at ->applyOnOutput to have SecureHeaders take care of this for you.

Parameters

http

An implementation of the ->HttpAdapter interface, to which settings configured via SecureHeaders will be applied.

Return Values

Returns the headers

strong emph strong in emph emph in strong in strong emph in emph strong

emph with emph in it strong with strong in it

internal emphasis: foobarbaz no emphasis: foo_bar_baz

  • a
  • b
  • c
  • d
    • e
  • f
  • g
  • h
  • i

bar baz foo

foo


a

foo bar

foo bar baz

code

not code

  • one

two

foo

foo
bar
  1. asdf

sdfg

  1. asdf sdfg

  1. a
  2. b
  1. a
  2. b
  1. a
  2. b

Stefan said:

I would like to visit a castle in north scotland, next year. But my home is my castle

[Stefan said]:

I would like to visit a castle in north scotland, next year. But my home is my castle

[Stefan said][2pm Sunday]:

I would like to visit a castle in north scotland, next year. But my home is my castle

abc defghi
bar baz

www.google.com http://www.google.com http://www.google.com

strong with emph* in it

*normal strong in it

strong still strong*

two del one del ~~~three del~~~ ~~del ~with del~~~

==two mark== =one mark= ===three mark=== ==mark =with mark=== ===with mark= mark==

bar
baz
foo

example example

abc a b*d c abc a b*d c

a abc

a a_ a

a b*c c

a	a
ὐ	a

http://elk.canda.biz/app/kibana#/discover?_g=()&_a=(columns:!(_source),index:'deve-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'*')),sort:!('@timestamp',desc))

foo bar *baz bim bam

foo***

foo* bar

foo bar

foo bar

foobar

foobarbaz

***foo1234567890

_foo

strong emph

strong in emph

in emph strong

emph with emph in it strong with strong in it

in strong emph

emph in strong

foobarbaz

a * a