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

Method sync_headers_to_request

src/views/request_view.rs:417–422  ·  view source on GitHub ↗

Sync headers to request entity

(&self, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

415 headers.push(Header::new("Content-Type", content_type));
416 }
417 }
418
419 // Add auth header if applicable
420 if let Some(ref auth_editor) = self.auth_editor {
421 let config = auth_editor.read(cx).get_config(cx);
422 if let Some((key, value)) = config.to_header() {
423 if let Some(header) = headers
424 .iter_mut()
425 .find(|header| header.key.eq_ignore_ascii_case(&key))

Callers 2

send_requestMethod · 0.80

Calls 2

get_all_headersMethod · 0.80
set_headersMethod · 0.80

Tested by

no test coverage detected