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

Method with_header

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

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

Callers 2

attach_identityFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 1