stream_from_strings

Function stream_from_strings 

Source
pub fn stream_from_strings<I, S, E>(
    strings: I,
) -> StreamBody<Iter<IntoIter<Result<Bytes, E>>>>
where I: IntoIterator<Item = Result<S, E>>, S: Into<String>,
Expand description

Helper function to create a streaming body from a string iterator

Converts each string to bytes automatically.