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

Function supported

libatomic/examples/replication_acceptance/peer.rs:120–122  ·  view source on GitHub ↗
(headers: &HeaderMap)

Source from the content-addressed store, hash-verified

118 .into_response()
119}
120fn supported(headers: &HeaderMap) -> bool {
121 headers.get(PROTOCOL_HEADER).and_then(|h| h.to_str().ok()) == Some(PROTOCOL_SYNC_V1)
122}
123fn error(message: impl ToString) -> Response {
124 reply(
125 StatusCode::BAD_REQUEST,

Callers 2

pushFunction · 0.85
pullFunction · 0.85

Calls 2

getMethod · 0.65
okMethod · 0.45

Tested by

no test coverage detected