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

Method looks_like_text

src/entities/response.rs:195–213  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

193 fn default() -> Self {
194 Self {
195 body: Arc::from(""),
196 body_bytes: Bytes::new(),
197 cached_raw_body: None,
198 cached_formatted_body: None,
199 body_hash: 0,
200 }
201 }
202}
203
204impl Default for ResponseData {
205 fn default() -> Self {
206 Self {
207 status_code: 0,
208 status_text: String::new(),
209 headers: HashMap::new(),
210 request_headers: HashMap::new(),
211 request_url: String::new(),
212 payload: ResponsePayload::default(),
213 body_size_bytes: 0,
214 duration_ms: 0,
215 content_type: None,
216 }

Callers

nothing calls this directly

Calls 3

filterMethod · 0.80
is_emptyMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected