pub struct StreamableHttpTransport<C> { /* private fields */ }Expand description
Streamable HTTP transport with DNS pinning and no redirects.
Implementations§
Source§impl<C> StreamableHttpTransport<C>
impl<C> StreamableHttpTransport<C>
Trait Implementations§
Source§impl<C: McpCredentialProvider> McpTransport for StreamableHttpTransport<C>
impl<C: McpCredentialProvider> McpTransport for StreamableHttpTransport<C>
Source§fn list_tools<'life0, 'life1, 'async_trait>(
&'life0 self,
endpoint: &'life1 McpEndpoint,
) -> Pin<Box<dyn Future<Output = Result<Vec<McpTool>, McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_tools<'life0, 'life1, 'async_trait>(
&'life0 self,
endpoint: &'life1 McpEndpoint,
) -> Pin<Box<dyn Future<Output = Result<Vec<McpTool>, McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Implementations must disable redirects and pin DNS resolution to public
addresses; this policy layer rejects literal and credential-bearing URLs.
Source§fn call_tool<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
endpoint: &'life1 McpEndpoint,
context: &'life2 McpCallContext,
name: &'life3 str,
arguments: Value,
) -> Pin<Box<dyn Future<Output = Result<McpToolResult, McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn call_tool<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
endpoint: &'life1 McpEndpoint,
context: &'life2 McpCallContext,
name: &'life3 str,
arguments: Value,
) -> Pin<Box<dyn Future<Output = Result<McpToolResult, McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Invoke a remote tool.
Auto Trait Implementations§
impl<C> !Freeze for StreamableHttpTransport<C>
impl<C> RefUnwindSafe for StreamableHttpTransport<C>where
C: RefUnwindSafe,
impl<C> Send for StreamableHttpTransport<C>where
C: Send,
impl<C> Sync for StreamableHttpTransport<C>where
C: Sync,
impl<C> Unpin for StreamableHttpTransport<C>where
C: Unpin,
impl<C> UnsafeUnpin for StreamableHttpTransport<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for StreamableHttpTransport<C>where
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more