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§
- Generic
Event Source - A generic SSE event source that works with any
HttpClientExtimplementation.
Enums§
- Event
- Events created by the
GenericEventSource
Type Aliases§
- Boxed
Stream - Request
IdSlot - Shared slot for the transport request id captured off an SSE connection’s
response headers. Overwritten on every successful (re)connect — with
Nonewhen that connection’s response omits (or garbles) the header — so a reader at stream end sees the id of exactly the connection that delivered the terminal, never a previous connection’s.