MCPcopy Create free account
hub / github.com/PerroEngine/Perro / apply_headers

Function apply_headers

perro_source/api_modules/perro_networking/src/http.rs:603–611  ·  view source on GitHub ↗
(
    mut builder: ureq::RequestBuilder<B>,
    headers: &[(String, String)],
)

Source from the content-addressed store, hash-verified

601 match shared_agent {
602 Some(agent) => agent.clone(),
603 None => {
604 return HttpEvent::Failed(HttpError::new(
605 id,
606 url,
607 HttpErrorKind::Config,
608 "failed to create cookie-enabled http agent",
609 ));
610 }
611 }
612 } else {
613 match build_agent(config) {
614 Ok(agent) => agent,

Callers 1

send_requestFunction · 0.85

Calls 2

headerMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected