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

Method get_headers

src/components/header_editor.rs:234–244  ·  view source on GitHub ↗
(&self, cx: &App)

Source from the content-addressed store, hash-verified

232 return;
233 };
234
235 let headers: Vec<(String, String, bool)> = request
236 .read(cx)
237 .headers()
238 .iter()
239 .map(|h| (h.key.clone(), h.value.clone(), h.enabled))
240 .collect();
241
242 if headers.is_empty() {
243 return;
244 }
245
246 self.pending_initial_headers = Some(headers);
247 }

Callers 1

get_all_headersMethod · 0.80

Calls 3

filterMethod · 0.80
textMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected