MessageHeaders.replace

Replaces the value of the header @name in @hdrs with @value. (See also soup_message_headers_append().)

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

class MessageHeaders
void
replace
(
string name
,
string value
)

Parameters

name string

the header name to replace

value string

the new value of @name

Meta