Versions in this module Expand all Collapse all v0 v0.1.2 Sep 18, 2024 v0.1.1 Sep 18, 2024 Changes in this version + func RegisterDecoder(contentType string, decoder func(io.ReadCloser) Decoder) + type Decoder interface + Close func() error + Err func() error + Event func() Event + Next func() bool + func NewDecoder(res *http.Response) Decoder + type Event struct + Data []byte + Type string + type Stream struct + func NewStream[T any](decoder Decoder, err error) *Stream[T] + func (s *Stream[T]) Close() error + func (s *Stream[T]) Current() T + func (s *Stream[T]) Err() error + func (s *Stream[T]) Next() bool