As discussed [here](https://github.com/Automattic/wordpress-rs/pull/132/files#r1622697910), the creating a [`HeaderMap`](https://docs.rs/http/latest/http/header/struct.HeaderMap.html) from [`HashMap`](https://doc.rust-lang.org/std/collections/struct.HashMap.html) might fail and we should handle that.