php-fig/fig-standards — pull request #330 by weierophinney (2014-09-26 21:19:13+00:00)
Title: [PSR-7] Add attach() to the StreamInterface

Per @evert on the mailing list, having an `attach()` method can be useful for
replacing the underlying stream resource -- particularly when in server-side
code and you wish to change from one content stream to another (e.g., to
return a file instead of a string).