1 2 3 4 5 6 7 8 9 10 11 12 13 14
use mime::Mime; /// The `Content-Type` header. /// /// Used to describe the MIME type of message body. Can be used with both /// requests and responses. #[derive(Clone, PartialEq, Debug)] pub struct ContentType(pub Mime); impl_header!(ContentType, "Content-Type", Mime); bench_header!(bench, ContentType, { vec![b"application/json; charset=utf-8".to_vec()] });