in core/src/raw/adapters/typed_kv/backend.rs [378:399]
fn build(&self) -> Value {
let mut metadata = Metadata::new(EntryMode::FILE);
if let Some(v) = self.op.cache_control() {
metadata.set_cache_control(v);
}
if let Some(v) = self.op.content_disposition() {
metadata.set_content_disposition(v);
}
if let Some(v) = self.op.content_type() {
metadata.set_content_type(v);
}
if let Some(v) = self.op.content_length() {
metadata.set_content_length(v);
} else {
metadata.set_content_length(self.buf.len() as u64);
}
Value {
metadata,
value: self.buf.peak_all(),
}
}