Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Output.setHeader

Output.setHeader($name, $value, $options={}) -> null

Description

Set a response header.

If $options is -append, it will set the same header multiple times without overwriting the previous value.

Output.setHeader('X-App-Name', 'MyApp 2.0')

Output.setHeader('WWW-Authenticate', 'Negotiate')
Output.setHeader('WWW-Authenticate', 'NTLM', { append })

See Also