pub struct McpHttpHandler { /* private fields */ }
Expand description
HTTP handler for MCP requests
Implementations§
Source§impl McpHttpHandler
impl McpHttpHandler
Sourcepub fn new(config: ServerConfig, dispatcher: Arc<JsonRpcDispatcher>) -> Self
pub fn new(config: ServerConfig, dispatcher: Arc<JsonRpcDispatcher>) -> Self
Create a new handler
Sourcepub fn with_sse_manager(
config: ServerConfig,
dispatcher: Arc<JsonRpcDispatcher>,
sse_manager: Arc<SseManager>,
) -> Self
pub fn with_sse_manager( config: ServerConfig, dispatcher: Arc<JsonRpcDispatcher>, sse_manager: Arc<SseManager>, ) -> Self
Create a new handler with existing SSE manager
Auto Trait Implementations§
impl Freeze for McpHttpHandler
impl !RefUnwindSafe for McpHttpHandler
impl Send for McpHttpHandler
impl Sync for McpHttpHandler
impl Unpin for McpHttpHandler
impl !UnwindSafe for McpHttpHandler
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