Home
last modified time | relevance | path

Searched refs:mime_type (Results 1 – 6 of 6) sorted by relevance

/tools/netsim/rust/daemon/src/http_server/
Dserver_response.rs38 fn put_ok_with_length(&mut self, mime_type: &str, length: usize, headers: StrHeaders); in put_ok_with_length()
40 fn put_ok(&mut self, mime_type: &str, body: &str, headers: StrHeaders); in put_ok()
42 fn put_ok_with_vec(&mut self, mime_type: &str, body: Vec<u8>, headers: StrHeaders); in put_ok_with_vec()
105 fn put_ok_with_length(&mut self, mime_type: &str, length: usize, headers: StrHeaders) { in put_ok_with_length()
108 .header("Content-Type", HeaderValue::from_str(mime_type).unwrap()) in put_ok_with_length()
115 fn put_ok(&mut self, mime_type: &str, body: &str, headers: StrHeaders) { in put_ok()
116 let mut response = new_ok(mime_type, body.into()); in put_ok()
120 fn put_ok_with_vec(&mut self, mime_type: &str, body: Vec<u8>, headers: StrHeaders) { in put_ok_with_vec()
121 let mut response = new_ok(mime_type, body); in put_ok_with_vec()
/tools/netsim/rust/daemon/src/
Dffi.rs349 fn put_ok_with_length(self: &CxxServerResponseWriter, mime_type: &CxxString, length: usize); in put_ok_with_length()
355 fn put_ok(self: &CxxServerResponseWriter, mime_type: &CxxString, body: &CxxString); in put_ok()
431 fn put_ok_with_length(&mut self, mime_type: &str, length: usize, _headers: StrHeaders) { in put_ok_with_length()
432 let_cxx_string!(mime_type = mime_type); in put_ok_with_length()
433 self.writer.put_ok_with_length(&mime_type, length); in put_ok_with_length()
438 fn put_ok(&mut self, mime_type: &str, body: &str, _headers: StrHeaders) { in put_ok()
439 let_cxx_string!(mime_type = mime_type); in put_ok()
441 self.writer.put_ok(&mime_type, &body); in put_ok()
/tools/netsim/src/frontend/
Dserver_response_writable.h35 virtual void put_ok_with_length(const std::string &mime_type,
38 virtual void put_ok(const std::string &mime_type,
Dfrontend_server.cc52 void put_ok_with_length(const std::string &mime_type, in put_ok_with_length() argument
64 void put_ok(const std::string &mime_type, in put_ok() argument
/tools/acloud/internal/lib/
Dgstorage_client.py78 def Upload(self, local_src, bucket_name, object_name, mime_type): argument
94 media = apiclient.http.MediaIoBaseUpload(upload_file, mime_type)
/tools/acloud/public/
Ddevice_driver.py146 mime_type=self._cfg.disk_image_mime_type)