replace

fun replace(name: String, value: String)

Replaces the value of the header @name in @hdrs with @value.

See also method@MessageHeaders.append.

The caller is expected to make sure that @name and @value are syntactically correct.

Parameters

name

the header name to replace

value

the new value of @name