pub struct StreamableHTTPConnectionParams {
pub type: String,
pub url: String,
pub header: Option<Value>,
pub timeout: Option<f64>,
pub sse_read_timeout: Option<f64>,
pub terminate_on_close: Option<bool>,
pub transport_options: Option<Value>,
}Expand description
Defines the parameters for establishing a connection to an MCP server over HTTP using Server-Sent Events (SSE) for streaming. Usage: const connectionParams: StreamableHTTPConnectionParams = { type: ‘StreamableHTTPConnectionParams’, url: ‘http://localhost:8788/mcp’ };
Fields§
§type: String§url: String§header: Option<Value>Use transportOptions.requestInit.headers instead. This field will be ignored if transportOptions is provided even if no headers are specified in transportOptions.
timeout: Option<f64>§sse_read_timeout: Option<f64>§terminate_on_close: Option<bool>§transport_options: Option<Value>Trait Implementations§
Source§impl Clone for StreamableHTTPConnectionParams
impl Clone for StreamableHTTPConnectionParams
Source§fn clone(&self) -> StreamableHTTPConnectionParams
fn clone(&self) -> StreamableHTTPConnectionParams
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 Default for StreamableHTTPConnectionParams
impl Default for StreamableHTTPConnectionParams
Source§fn default() -> StreamableHTTPConnectionParams
fn default() -> StreamableHTTPConnectionParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamableHTTPConnectionParams
impl RefUnwindSafe for StreamableHTTPConnectionParams
impl Send for StreamableHTTPConnectionParams
impl Sync for StreamableHTTPConnectionParams
impl Unpin for StreamableHTTPConnectionParams
impl UnwindSafe for StreamableHTTPConnectionParams
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