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

Method get_field_header

flow-plugins/src/utils/multipart.rs:37–42  ·  view source on GitHub ↗
(&self, name: &str, content_type: &Mime)

Source from the content-addressed store, hash-verified

35 }
36
37 fn get_field_header(&self, name: &str, content_type: &Mime) -> String {
38 format!(
39 "--{}\r\nContent-Disposition: attachment; name=\"{}\"\r\nContent-Type: {}\r\n\r\n",
40 self.boundary, name, content_type
41 )
42 }
43
44 pub fn into_inner(self) -> W {
45 self.inner

Callers 1

write_field_headerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected