usecrate::response::ContentType;/// A request or response body: raw bytes with an associated content type.
#[derive(Debug)]pubstructBody{/// MIME type of the body content.
pubcontent_type: ContentType,
/// Raw body bytes.
pubdata:Vec<u8>,
}implBody{/// Creates a new body from a content type and raw bytes.
pubfnnew(content_type: ContentType, data:Vec<u8>)->Self{
Body { content_type, data }}}