Macro stream

Source
macro_rules! stream {
    ($body:expr) => { ... };
    ($body:expr, [ $( ($key:expr, $value:expr) ),* $(,)? ]) => { ... };
}
Expand description

Produces OK 200 response with stream body

§Examples

§Default usage

 use volga::{HttpRequest, stream};

 let body_stream = request.into_body_stream();
 stream!(body_stream);

§Custom headers

 use volga::{HttpRequest, stream};

 let body_stream = request.into_body_stream();
 stream!(body_stream, [
    ("Content-Type", "message/http")
 ]);