MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / with_header

Method with_header

atomic-remote/src/http/mod.rs:133–136  ·  view source on GitHub ↗

Add an extra header to send with each request.

(mut self, name: impl Into<String>, value: impl Into<String>)

Source from the content-addressed store, hash-verified

131
132 /// Add an extra header to send with each request.
133 pub fn with_header(mut self, name: impl Into<String>, value: impl Into<String>) -> Self {
134 self.extra_headers.push((name.into(), value.into()));
135 self
136 }
137}
138
139// ============================================================================

Callers 4

attach_identityFunction · 0.45
remote_configFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 1