The stream as an Io.Reader, for code written against readers (Io.read_all, the Http client). Reading it is read;
closing it closes the whole stream, once. The reader points at the stream, so it is only valid until close.
- stream: the stream to read through.
reader_of :: (stream: *Tls_Stream) -> Io.Reader
The stream as an Io.Reader, for code written against readers (Io.read_all, the Http client). Reading it is read;
closing it closes the whole stream, once. The reader points at the stream, so it is only valid until close.
Parameters
- stream: *Tls_Stream
- the stream to read through.