http\Message\Body
[mdref/mdref-http] / http / Message / Body / toStream.md
1 # http\Message\Body http\Message\Body::toStream(resource $stream[, int $offset = 0[, int $maxlen = 0]])
2
3 Stream the message body into antother stream $stream, starting from $offset, streaming $maxlen at most.
4
5 ## Params:
6
7 * resource $stream
8 The resource to write to.
9 * Optional int $offset = 0
10 The starting offset.
11 * Optional int $maxlen = 0
12 The maximum amount of data to stream. All content if less than 1.
13
14 ## Returns:
15
16 * http\Message\Body, self.