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

Method describe_responses

flow-plugins/src/utils/bytes.rs:33–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32impl ResponseEntity for Bytes {
33 fn describe_responses() -> Responses {
34 let mut resps = IndexMap::new();
35
36 let mut content = IndexMap::new();
37 content.insert(
38 Cow::Borrowed("application/octet-stream"),
39 MediaType {
40 schema: Some(ObjectOrReference::Object(Self::describe())),
41 examples: None,
42 encoding: Default::default(),
43 },
44 );
45
46 resps.insert(
47 Cow::Borrowed("200"),
48 Response {
49 content,
50 ..Default::default()
51 },
52 );
53 resps
54 }
55}
56
57impl Reply for Bytes {

Callers

nothing calls this directly

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected