Module sse

Module sse 

Source
Expand description

An SSE implementation that leverages crate::http_client::HttpClientExt to allow streaming with automatic retry handling for any implementor of HttpClientExt.

Primarily intended for internal usage. However if you also wish to implement generic HTTP streaming for your custom completion model, you may find this helpful.

Structs§

GenericEventSource
A generic event source that can use any HTTP client. Modeled heavily on the reqwest-eventsource implementation.

Enums§

Event
Events created by the GenericEventSource
ReadyState
The ready state of a GenericEventSource

Type Aliases§

BoxedStream