pub trait StreamingFormat<T> {
// Required methods
fn to_bytes_stream<'a, 'b>(
&'a self,
stream: BoxStream<'b, Result<T, Error>>,
options: &'a StreamBodyAsOptions,
) -> BoxStream<'b, Result<Bytes, Error>>;
fn http_response_headers(
&self,
options: &StreamBodyAsOptions,
) -> Option<HeaderMap>;
}