MessageHeaders.replace

void replace(string name, string value)

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

See also [soup.message_headers.MessageHeaders.append].

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

Parameters

namethe header name to replace
valuethe new value of name