Skip to main content

streamable_http_service

Function streamable_http_service 

Source
pub fn streamable_http_service<S, F>(
    factory: F,
    config: StreamableHttpServerConfig,
) -> StreamableHttpService<S, LocalSessionManager>
where S: ServerHandler, F: Fn() -> Result<S, Error> + Send + Sync + 'static,
Expand description

Build a [StreamableHttpService] for any [ServerHandler], given a factory that produces a fresh handler per session and a transport config (see streamable_http_config).