Open
Description
The documentation of HeaderMap
specially the Exemples
section advice to do "example.com".parse().unwrap()
, following #2713 I suggest the doc should replace the .parse().unwrap()
by using HeaderValue::from_static("example.com")
that is much better. Or at least mention both until http release a version that require Rust 1.57 since const_panic
are stable