setHeaderByName

open fun setHeaderByName(name: String, value: String, overwrite: Boolean)

Set the value for the specified response header field.

Parameters

name

The header name.

value

The header value.

overwrite

If true any existing values will be replaced with the new value. If false any existing values will not be overwritten.