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

Output.setHeader

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

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