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

Method rewrite_request_path

src/oauth/mod.rs:436–446  ·  view source on GitHub ↗
(
        &self,
        provider_id: &str,
        path: &str,
    )

Source from the content-addressed store, hash-verified

434 }
435
436 pub fn rewrite_request_path(
437 &self,
438 provider_id: &str,
439 path: &str,
440 ) -> Result<Option<String>, OAuthError> {
441 let provider = self
442 .providers
443 .get(provider_id)
444 .ok_or_else(|| OAuthError::ProviderNotFound(provider_id.to_string()))?;
445 Ok(provider.rewrite_request_path(path))
446 }
447
448 pub fn needs_response_translation(
449 &self,

Callers 1

forward_oauth_requestFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected