Type Definition jws::header::HeadersMut

source ·
pub type HeadersMut<'a> = AvailableHeaders<&'a mut HeaderMap>;

Implementations

Insert a value into either of the available headers.

If the protected header is available, the value is inserted into that one. Otherwise, it is inserted into the unprotected header.

If the value is inserted into the protected header but the key exists in the unprotected header, it is removed from the unprotected header.

Remove a key from all available headers.

This returns the erased value, if any. If the key exists in both headers, the value from the protected header is returned.