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

Function reject_transport_credentials

libatomic/src/local.rs:413–423  ·  view source on GitHub ↗
(
    headers: &std::collections::HashMap<String, String>,
    url: &Option<String>,
)

Source from the content-addressed store, hash-verified

411}
412
413fn reject_transport_credentials(
414 headers: &std::collections::HashMap<String, String>,
415 url: &Option<String>,
416) -> Result<(), Status> {
417 if !headers.is_empty() || url.is_some() {
418 return Err(Status::invalid_argument(
419 "trusted local sync does not accept auth_headers or remote_url",
420 ));
421 }
422 Ok(())
423}
424
425fn auth_status(error: auth::AuthError) -> Status {
426 match error {

Callers 1

callMethod · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected