util.writeHead()

Write to the response head.

Syntax

util.writeHead(html string) util.writeHead(response File, html string)

Parameters

html string

Valid html code that shall be appended to the response file’s head.

response File

By default, the response file associated with the execution environment is used. You can override it and pass in a file yourself, which is useful when testing.

Description

Write to the response head.

Examples

Add a script tag.

Pass in custom response file.