I want to create the header Content-Type: application/x-protobuf
in my Iron web app.
I can see from the Iron docs that it's possible to construct content-types, but there's no SubLevel
that corresponds to protobuf.
How can I create this content-type value?
let mut headers = Headers::new();
headers.set(ContentType(Mime(TopLevel::Application, SubLevel::???, vec![])));
If you read the documentation for
SubLevel
, you'll see its definition:Thus, you need: