Skip to main content

create_event_source_response_handler

Function create_event_source_response_handler 

Source
pub fn create_event_source_response_handler<T>() -> ResponseHandler<BoxStream<'static, Result<T, AiMuxError>>>
where T: DeserializeOwned + Send + 'static,
Expand description

Parse an SSE response and deserialize each data: field as T.