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

Method into_response

flow-plugins/src/utils/bare_json.rs:57–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected