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

Method with_header

atomic-remote/src/http/mod.rs:132–135  ·  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

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

Callers 2

attach_identityFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 1