31ff77c353cd106628ab9ccd9f196740d30052ab
[mdref/mdref-http] / http / Message / toStream.md
1 # http\Message http\Message::toStream(resource $stream[, int $offset = 0[, int $maxlen = 0]])
2
3 Stream the message into 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, self.