pub struct StreamableHttpTransportFactory { /* private fields */ }Expand description
Factory that connects to a Streamable HTTP MCP endpoint.
Created from a StreamableHttpTransportConfig. Each call to
connect creates a new HTTP-backed MCP session.
Implementations§
Source§impl StreamableHttpTransportFactory
impl StreamableHttpTransportFactory
Sourcepub fn new(config: StreamableHttpTransportConfig) -> Self
pub fn new(config: StreamableHttpTransportConfig) -> Self
Creates a new factory from the given Streamable HTTP transport configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamableHttpTransportFactory
impl !RefUnwindSafe for StreamableHttpTransportFactory
impl Send for StreamableHttpTransportFactory
impl Sync for StreamableHttpTransportFactory
impl Unpin for StreamableHttpTransportFactory
impl UnsafeUnpin for StreamableHttpTransportFactory
impl !UnwindSafe for StreamableHttpTransportFactory
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