append

abstract fun append(name: String, value: String? = null)

Append a header to the response; this method is exported to guest code.

Note that headers must be provided before send is called. This method will add a header to the response even if there is already a header by the same name.

Parameters

name

The name of the header to set.

value

The value of the header to set.