MCPcopy Create free account
hub / github.com/bajrangCoder/setu / clear

Method clear

src/entities/response.rs:504–509  ·  view source on GitHub ↗
(&mut self, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

502 Self::compute_stored_hash(&self.payload.body, &self.payload.body_bytes);
503
504 had_body_bytes && self.payload.body_bytes.is_empty()
505 }
506
507 /// Detect content category from content-type header
508 pub fn content_category(&self) -> ContentCategory {
509 Self::classify_content(self.content_type.as_deref(), &self.payload.body_bytes)
510 }
511
512 fn raw_body_arc(&mut self) -> Arc<str> {

Callers 1

compact_storageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected