MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / into_response

Method into_response

flow-plugins/src/utils/bytes.rs:59–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57impl Reply for Bytes {
58 #[inline]
59 fn into_response(self) -> reply::Response {
60 let mut resp = reply::Response::new(self.inner.into());
61 resp.headers_mut().typed_insert(ContentType::from(
62 Mime::from_str("application/octet-stream").unwrap(),
63 ));
64 resp
65 }
66}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected