MCPcopy Create free account
hub / github.com/clawshell/clawshell / response_format

Method response_format

src/oauth/mod.rs:460–470  ·  view source on GitHub ↗
(
        &self,
        provider_id: &str,
        original_path: &str,
    )

Source from the content-addressed store, hash-verified

458 }
459
460 pub fn response_format(
461 &self,
462 provider_id: &str,
463 original_path: &str,
464 ) -> Result<Option<ResponseFormat>, OAuthError> {
465 let provider = self
466 .providers
467 .get(provider_id)
468 .ok_or_else(|| OAuthError::ProviderNotFound(provider_id.to_string()))?;
469 Ok(provider.response_format(original_path))
470 }
471
472 pub fn has_provider(&self, id: &str) -> bool {
473 self.providers.contains_key(id)

Callers 1

forward_oauth_requestFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected