pub struct StreamableHttpConfig {
pub url: String,
pub headers: Vec<HeaderConfig>,
pub connect_timeout_ms: u64,
}Expand description
MCP Streamable HTTP transport configuration (MCP 2.0, 2025-03-26).
Uses a single HTTP endpoint for both sending and receiving JSON-RPC messages.
The server URL should point to the MCP endpoint (e.g. http://localhost:3000/mcp).
Fields§
§url: StringMCP endpoint URL
headers: Vec<HeaderConfig>Additional headers
connect_timeout_ms: u64Connection timeout in milliseconds
Trait Implementations§
Source§impl Clone for StreamableHttpConfig
impl Clone for StreamableHttpConfig
Source§fn clone(&self) -> StreamableHttpConfig
fn clone(&self) -> StreamableHttpConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamableHttpConfig
impl Debug for StreamableHttpConfig
Source§impl<'de> Deserialize<'de> for StreamableHttpConfig
impl<'de> Deserialize<'de> for StreamableHttpConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamableHttpConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamableHttpConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StreamableHttpConfig
impl Serialize for StreamableHttpConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StreamableHttpConfig
impl RefUnwindSafe for StreamableHttpConfig
impl Send for StreamableHttpConfig
impl Sync for StreamableHttpConfig
impl Unpin for StreamableHttpConfig
impl UnsafeUnpin for StreamableHttpConfig
impl UnwindSafe for StreamableHttpConfig
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