setSensitive

fun setSensitive(name: String, value: String)(source)

Replaces every entry named name with one sensitive entry appended at the end.

Parameters

name

the header name, an RFC 9110 token.

value

the value; stored trimmed of SP and HTAB at the ends.

Throws

if name is empty or not a token, or value contains CR, LF or NUL.