setHeaderByName

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

Set the value for the specified response header field. The Referer value cannot be set using this method.

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.