reason-native-web / morph

A webframework for Reason and OCaml
https://reason-native-web.github.io/morph/
MIT License
139 stars 7 forks source link

Use Lwt_stream.iter to read the stream #19

Closed ulrikstrid closed 5 years ago

ulrikstrid commented 5 years ago

cc @tatchi

As the main goal was to support server sent events I also added another type for the body.

`StringStream(Lwt_stream(string))

This type accepts a stream of strings and will flush every new string it gets.