pub struct ServerHttpEndpoint { /* private fields */ }Expand description
A live server composition over a bounded HTTP endpoint.
Modern Streamable HTTP POSTs, including discovery, are independently
dispatched and neither emit nor accept MCP-Session-Id. A final
subscriptions/listen SSE body retains its request-owned dispatch only for
that response body. A caller retaining a ServerHttpSession owns the
modern mutable-state and continuation partition for that session; anonymous
stateless POSTs remain request-local. Exact MCP 2024-11-05 requests retain
the transport-issued session identifier, lifecycle adapter, and SSE
response stream for this one session when the legacy feature is enabled.
Implementations§
Source§impl ServerHttpEndpoint
impl ServerHttpEndpoint
Sourcepub fn open_session(
&self,
cx: &Cx,
) -> Result<ServerHttpSession, ServerHttpEndpointError>
pub fn open_session( &self, cx: &Cx, ) -> Result<ServerHttpSession, ServerHttpEndpointError>
Opens one independently bounded live HTTP session.
Modern mutable state and MRTR continuations are scoped to the returned session. A stateless request that does not retain this session therefore cannot share state with another client request.